emopoops Posted April 20, 2009 Share Posted April 20, 2009 <? if ($_POST['form_submitted'] == '1') { ## Form submitted, user registering! } else{ ## No value found, user activating account! } mysql_connect("localhost", databas name, passs or die(mysql_error())[color=red];[/color] mysql_select_db("tablename") or die(mysql_error()); if ($_POST['form_submitted'] == '1') { } else { } ?> of course i make it so the info is correct like my database name and stuff but this is how i got it from this website : http://www.learnphponline.com/scripts/email-activation-for-php-forms and everytime i do that it says stupid unexpected ";" in line 11 which is the thing i colored red. then when i take the ";" out it says unexpected t_string in line 13 or something i thought that the ";" was supposed to be there anyways. and i should let you know that i accidentally put a ";" on line 11 (an extra one cause its there in the first part of the script on that webiste link i gave) and thats what started it. then ii took out the ";" that is supposed to be there. and the error doesnt go away it becomes tstring error. i dont know what to do. when i took out the one that isnt supposed to be in the code it gave me the unexpected ";" error. then i took out the one i made in red as well it gave me the same thing. i dont know what to do. Link to comment https://forums.phpfreaks.com/topic/154829-solved-this-php-script-piece-is-ginving-me-errors-for-no-reason/ Share on other sites More sharing options...
emopoops Posted April 20, 2009 Author Share Posted April 20, 2009 yeah yeah yeah yeah i probbaly look like an idiot but well i forgot to add the ")" after the password. cause on the website link it had that wring in the first part of the code too! RAWRRRRR SORREE!!!!!!!!!!!!! Link to comment https://forums.phpfreaks.com/topic/154829-solved-this-php-script-piece-is-ginving-me-errors-for-no-reason/#findComment-814285 Share on other sites More sharing options...
trq Posted April 20, 2009 Share Posted April 20, 2009 Wrong board. Link to comment https://forums.phpfreaks.com/topic/154829-solved-this-php-script-piece-is-ginving-me-errors-for-no-reason/#findComment-814398 Share on other sites More sharing options...
Recommended Posts