Guest_imported
New member
- Jan 1, 1970
- 0
When I do this action, I get a parse error:
What's wrong? I've tried to get it to work, but no luck.
Code:
if ($action == 'do_display') {
include 'data/config.php';
$dbh = mysql_connect($server,$dbusername,$dbpassword);
mysql_select_db($dbase,$dbh);
$err = mysql_error();
if ($err){
echo CPMessage("Error in database: $err");
exit;
};
DROP TABLE IF EXISTS guestbook_display;
CREATE TABLE guestbook_display (
displayid int(1) unsigned NOT NULL default '1',
status varchar(6) NOT NULL default '',
email varchar(150) NOT NULL default '',
name varchar(150) NOT NULL default '',
link1name varchar(150) NOT NULL default '',
link1url varchar(150) NOT NULL default '',
link2name varchar(150) NOT NULL default '',
link2url varchar(150) NOT NULL default '',
entriesperpage varchar(150) NOT NULL default '',
ipdisplay varchar(8) NOT NULL default '',
PRIMARY KEY (displayid)
) TYPE=MyISAM;
INSERT INTO guestbook_display VALUES
(1,$GBStatus,'$GuestbookEmail','$GuestbookName','$Link1Name'
,'$Link1URL','$Link2Name','$Link2URL','$MaxPerPage','$IPDisp
lay');
echo CPMessage("Display setting updated!");
exit;
}
What's wrong? I've tried to get it to work, but no luck.