Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

php + mysql guestbook help

Original Message
Name: Infamous01
Date: December 23, 2007 at 10:40:12 Pacific
Subject: php + mysql guestbook help
OS: na
CPU/Ram: na
Model/Manufacturer: 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


Report Offensive Message For Removal


Response Number 1
Name: Michael J (by mjdamato)
Date: December 23, 2007 at 11:11:53 Pacific
Subject: php + mysql guestbook help
Reply: (edit)
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


Report Offensive Follow Up For Removal

Response Number 2
Name: Infamous01
Date: December 23, 2007 at 11:26:47 Pacific
Subject: php + mysql guestbook help
Reply: (edit)
ok thnx a lot. i actually ended up using a different script that was more complex and allowed more feature..

definately appreciated tho


Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: php + mysql guestbook help

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




Batch File- Current Date in Excel

how to setup call of duty to joytok

WindowsME / HotMail Problem

Corrupt memory

Convert fat32 to Ntfs


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC