| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Accredited PayPal World Seller|
|unexpected T CONSTANT ENCAPSED STRING |
syntax error on line 8
| 7:42 pm on Apr 30, 2012 (gmt 0)|
Here are lines 6-10 of my code:
echo 'Error: Could not connect to database. Please try again later.';
| 7:58 pm on Apr 30, 2012 (gmt 0)|
There are no errors here. Are you sure you have the correct lines?
| 8:01 pm on Apr 30, 2012 (gmt 0)|
I think I fixed it by using this code as a model:
$con = mysql_connect("localhost","peter","abc123");
die('Could not connect: ' . mysql_error());
// some code
| 8:05 pm on Apr 30, 2012 (gmt 0)|
Cool, glad you figured it out.
| 8:07 pm on Apr 30, 2012 (gmt 0)|
Thanks for your help, eelixduppy. I'm not sure why the other coding didn't work, but this at least is working for me.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved