Computing.Net > Forums > Web Development > php + mysql guestbook help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

php + mysql guestbook help

Reply to Message Icon

Name: Infamous01
Date: December 23, 2007 at 10:40:12 Pacific
OS: na
CPU/Ram: na
Product: na
Comment:

Ive been trying to follow this very basic php+mysql guestbook for my site. The link is

http://www.go4expert.com/forums/sho...

Now the gbook.php file works perfectly. It is able to connect and write to the database. However the showgbook.php file comes up with an error when visiting. The error is:

"Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/selena-quintanilla.com/Guestbook/showgbook.php on line 15"

The code for both files are at the bottom of the link. I copied it exactly how it is in the site, filled in the database info and created the table in MySQL. I dont understand why im getting this error. Any help is appreciated

Thanks in advance,

-Matt



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: December 23, 2007 at 11:11:53 Pacific
Reply:

This line

$sql"SELECT fname,location,email,UNIX_TIMESTAMP(dt),comments FROM guestbook ORDER BY dt";

Should be this

$sql="SELECT fname,location,email,UNIX_TIMESTAMP(dt),comments FROM guestbook ORDER BY dt";

Michael J


0

Response Number 2
Name: Infamous01
Date: December 23, 2007 at 11:26:47 Pacific
Reply:

ok thnx a lot. i actually ended up using a different script that was more complex and allowed more feature..

definately appreciated tho


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: php + mysql guestbook help

PHP/MySQL and CRM help! www.computing.net/answers/webdevel/phpmysql-and-crm-help/2520.html

How do I setup PHP & MySQL on XP www.computing.net/answers/webdevel/how-do-i-setup-php-amp-mysql-on-xp/122.html

PHP, MySQL, phpMyAdmin www.computing.net/answers/webdevel/php-mysql-phpmyadmin/1590.html