Jump to content

script not working


Dracolas

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.