i've small problem with php and mysql and need some help to all of you guys.
Let say i have several input type like this:
$i=0;
while ($i != 5) :
<input type="text" name="question<%=$i">
$i++;
endwhile;
SubmitButtonHere
i'd like to insert all input field (questoin1, question2..etc) to MySql database. but the problem is how to insert filled data only into database and blank/null data will not be inserted. this is my logic :
if (question$i == "") { don't insert to db }
else { insert all filled data to database }
i don't know how to build that query?
any help would be appreciated. Thanks Alot