|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
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:
|
#2
|
||
|
If you coded with tabs it would be alot easier to see... yout missing an } after your first If statement.
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#3
|
||
|
ahh.. thanks...
i generally do put allot of spaces in between the stuff but i didnt on that one for some reason... |
#4
|
||
|
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.. |
#5
|
||
|
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...
__________________
The Nova-Zone http://youraite.yourhost.yourusername.com - long urls -looks bad -who can remember it? - Solution? - Get a short Nova-Zone subdomain! Yoursite.nova-zone.com - Now thats smart. just ask for one via pm,email or contact page on site. Last edited by General Nuisance; 08-11-2005 at 11:21 AM. |
#6
|
||
|
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..?
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#7
|
||
|
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... |
#8
|
||
|
on the mysql insert your missing the 2 quotes, '$email'
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#9
|
||
|
cool, thanks..
try it.... i would like to make the Thank you message appear by itself.. if its possible.. |
#10
|
||
|
change your code around a bit:
put PHP Code:
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#11
|
||
|
still goes to bottm of page....
this is current script.. PHP Code:
|
#12
|
||
|
try putting your form code into the if else statement...
|
#13
|
|||
|
Quote:
|
#14
|
||
|
tried it now, it looks a1
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
little problem | Mauser 98K | Tech Support | 5 | 04-15-2008 07:32 PM |
a little problem ... | VooDoo- | Tech Support | 2 | 03-09-2008 11:28 PM |
i have a problem | .enfo. | Tech Support | 9 | 05-24-2004 04:57 PM |
PROBLEM !!! | csman | Delta Force | 1 | 12-24-2003 08:31 AM |