Forum Moderators: coopster
Firstly I have a form that takes details for entering into a DB, problem 1 is if not all fields are filled it says click to go back and complete the form but its reset all fields to blank. please how do you stop this?
now my code prob :/
it only deletes one image although sometimes theres more? any ideas why its not looping through removing all images please.
$tot = 6;
$num = 0;
for($q=0;$q<$tot;$q++){
$old_image = mysql_query("SELECT picture".$num." FROM brokerage WHERE id = '$boat'",$conn);
$field = "picture".$num."";
$picture_result = mysql_result($old_image,$id,$field);
@unlink($picture_result);
thanks all
if not all fields are filled it says click to go back and complete the form but its reset all fields to blank. please how do you stop this?
I would assume that it should be in the error checking near the top of the script. It will also depend on what you want it to do instead. It is just a matter of rebuilding the logic of the error checking section.
Want to post the piece of code (short) that is doing the error checking or outputting the "Go Back and fill out ...." message.