![]() |
yet another problem...
hey guys im beginning to think that this board was created just for me.. lol
just made this become affiliates script and its getting this error... Parse error: parse error, unexpected $ in /var/www/localhost/htdocs/novazone/become_affiliates.php on line 61 i have looked over it and found a few minor issues but still didnt fix the error... //I know there isnt any mysql_connect commands..// PHP Code:
|
If you coded with tabs it would be alot easier to see... yout missing an } after your first If statement.
|
ahh.. thanks...
i generally do put allot of spaces in between the stuff but i didnt on that one for some reason... |
ok i added that and it does work now but when i fill out the form it does not submit the data to mysql and come up with page cannot be displayed..
http://nova-zone.com/become_affiliates.php edit just tried the link above and it has the url bar and it says $self up there... hmm.. |
ok i found it :)
i had: PHP Code:
dont quite understand but who cares it works... EDIT: ok its working now but only if i put email as my email address if i put GeneraNuisance@charter.net it says invalid mysql sytax and if i put GeneralNuisanceATcharter.net then it says invalid field name and if i put email it works fine... |
when I try to submit the form I get:
Fatal error: Call to a member function on a non-object in /var/www/localhost/htdocs/novazone/become_affiliates.php on line 53 which is prolly $DB->Query( $sql ); I was wondering about that because there is no class in that script and there is no include to include a file with the class..? |
i was typing while you were.. lol go back and read my post above..
and yes i forgot that... because i have my site built i cant have it as a popup i had to make it a regular page... |
on the mysql insert your missing the 2 quotes, '$email'
|
cool, thanks..
try it.... i would like to make the Thank you message appear by itself.. if its possible.. |
change your code around a bit:
put PHP Code:
|
still goes to bottm of page....
this is current script.. PHP Code:
|
try putting your form code into the if else statement...
|
Quote:
|
tried it now, it looks a1
|
All times are GMT -5. The time now is 08:04 AM. |
Powered by vBulletin®