| | |
Parse error: syntax error, unexpected T_STRING in E:\Program Files\wamp\www\practice\
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 35
Reputation:
Solved Threads: 0
Parse error: syntax error, unexpected T_STRING in E:\Program Files\wamp\www\practice\
0
#1 Apr 18th, 2008
Parse error: syntax error, unexpected T_STRING in E:\Program Files\wamp\www\practice\addentry.php on line 89
hi, i keep getting this error and i just cant figure out what is wrong. i got this code off a book that uses php v 5.1.4 and my wamp server runs php v 5.2.5, could this be a problem? does anybody know where i could download a good free php texteditor/compiler?
here is the code, line 89 is marked in red..
hi, i keep getting this error and i just cant figure out what is wrong. i got this code off a book that uses php v 5.1.4 and my wamp server runs php v 5.2.5, could this be a problem? does anybody know where i could download a good free php texteditor/compiler?
here is the code, line 89 is marked in red..
PHP Syntax (Toggle Plain Text)
if($_POST[fax_number] ) { [COLOR="Red"]$add_fax_sql = "INSERT INTO fax ("master_id", "date_added", "date_modified", "fax_number", "type")[/COLOR] VALUES ('".$master_id."', now(), now(), '".$_POST["fax_number"]."','".$_POST["fax_type"]."')"; $add_fax_res = mysql_query($mysql, $add_fax_sql) or die(mysql_error()); }
Re: Parse error: syntax error, unexpected T_STRING in E:\Program Files\wamp\www\practice\
0
#2 Apr 18th, 2008
i have edited the code.here it is:
php Syntax (Toggle Plain Text)
if($_POST[fax_number] ) { $add_fax_sql = "INSERT INTO fax VALUES('".$master_id."', now(), now(), '".$_POST["fax_number"]."','".$_POST["fax_type"]."')"; $add_fax_res = mysql_query($mysql, $add_fax_sql) or die(mysql_error()); }
Re: Parse error: syntax error, unexpected T_STRING in E:\Program Files\wamp\www\practice\
0
#3 Apr 18th, 2008
![]() |
Similar Threads
Other Threads in the PHP Forum
- Previous Thread: Displaying Image in Select Form Element
- Next Thread: have two onsubmit buttons??
Views: 952 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download duplicates dynamic echo email error execution file files folder form forms function functions google href htaccess html htmlspecialchars image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php phpvotingscript problem query radio random recursion regex remote script search select server session sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





