Dracolas Posted January 29, 2010 Share Posted January 29, 2010 http://www.sourcepod.com/ufdimb80-2679 the add report comes up fine. When i hit the add report button it clears the screen and then come back blank...without adding anything to the database... why is this? Link to comment https://forums.phpfreaks.com/topic/190259-script-not-working/ Share on other sites More sharing options...
akitchin Posted January 29, 2010 Share Posted January 29, 2010 please do us all a favour in future, and try to post only the relevant code. in this case, the query is missing single quotes around the $username variable, most likely resulting in a MySQL error that causes this: if ($add_member = mysql_query($insert)) to fail. you don't specify any else block, so it will show a blank page if the form was submitted, but that if() fails. adding some basic error checking would help here; even simply adding an else block that echoes "Query failed" or something similar would work. Link to comment https://forums.phpfreaks.com/topic/190259-script-not-working/#findComment-1003790 Share on other sites More sharing options...
Dracolas Posted January 29, 2010 Author Share Posted January 29, 2010 K ty for the help. the reason i posted the entire script is because i've trying posting partial before and it didn't include what was the problem...so i just post the entire script....i will highlight what i think is the problem in the future tho... THank you for the help Link to comment https://forums.phpfreaks.com/topic/190259-script-not-working/#findComment-1003795 Share on other sites More sharing options...
akitchin Posted January 29, 2010 Share Posted January 29, 2010 if your problem was fixed by adding those quotes, please make sure to mark this as solved. Link to comment https://forums.phpfreaks.com/topic/190259-script-not-working/#findComment-1003799 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.