•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,761 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,284 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 247 | Replies: 2
![]() |
•
•
Join Date: Apr 2008
Posts: 10
Reputation:
Rep Power: 1
Solved Threads: 0
Parse error: syntax error, unexpected T_STRING in E:\Program Files\wamp\www\practice\
#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..
language 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()); }
•
•
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 508
Reputation:
Rep Power: 3
Solved Threads: 68
Re: Parse error: syntax error, unexpected T_STRING in E:\Program Files\wamp\www\practice\
#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()); }
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
http://ryantetek.wordpress.com
•
•
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 508
Reputation:
Rep Power: 3
Solved Threads: 68
Re: Parse error: syntax error, unexpected T_STRING in E:\Program Files\wamp\www\practice\
#3
Apr 18th, 2008
By the way please don't post 2 same threads.
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
http://ryantetek.wordpress.com
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the PHP Forum
- Previous Thread: Displaying Image in Select Form Element
- Next Thread: have two onsubmit buttons??


Linear Mode