$comments = addslashes ("$comments");
$query = "INSERT INTO guestbook VALUES(,$name, $email, $job,
$comments)";
$result = MYSQL_QUERY($query);
?$#@62;
$#@60;BR$#@62;$#@60;P ALIGN = CENTER$#@62;感谢, $#@60;?php echo $name; ?$#@62;, 您的留言.
$#@60;BR$#@62;$#@60;P ALIGN = CENTER$#@62;$#@60;A HREF="guestbook.php3?action=view"
onMouseOver="window.status=View your comment now;return true"
onMouseOut="window.status=;return true" TITLE="View your
comment now"$#@62;观看留言$#@60;/A$#@62;$#@60;BR$#@62;$#@60;BR$#@62;
$#@60;?
}
/* if theres no action given, then we must show the main page */
else {
/* get the number of entries written into the guestbook*/
$query = "SELECT name from guestbook";
$result = MYSQL_QUERY($query);
$number = MYSQL_NUMROWS($result);
if ($number == "") {
$entry = "还没有人留过言"; }
elseif ($number == "1") {
$entry = "目前留言人数1人"; }
else {
$entry = "目前留言人数 $number 人"; }
echo "$#@60;CENTER$#@62;$#@60;BR$#@62;";
echo "$#@60;P$#@62;$entry$#@60;BR$#@62;";
echo "$#@60;H4$#@62;$#@60;FONT FACE=\"Verdana\" SIZE=\"3\"$#@62;$#@60;A
HREF=\"guestbook.php3?action=add\" onMouseOver=\"window.status=请您留言;return
true\" onMouseOut=\"window.status=;return true\" TITLE=\"Add
your name to our guestbook\"$#@62;请您留言$#@60;/A$#@62;$#@60;/FONT$#@62;$#@60;/H4$#@62;";
if ($number $#@62; "") {
echo "$#@60;H4$#@62;$#@60;FONT FACE=\"Verdana\" SIZE=\"3\"$#@62;$#@60;A
HREF=\"guestbook.php3?action=view\" onMouseOver=\"window.status=观看留言;return
true\" onMouseOut=\"window.status=;return true\" TITLE=\"View
the names in our guestbook\"$#@62;观看留言$#@60;/A$#@62;$#@60;/FONT$#@62;$#@60;/H4$#@62;";
}
echo "$#@60;/P$#@62;$#@60;/CENTER$#@62;";
}
?$#@62;
$#@60;BR$#@62;$#@60;SMALL$#@62;$#@60;CENTER$#@62;版权所有:$#@60;A HREF="http://personal.668.cc/haitang/index.htm"
onMouseOver="window.status=pert;return true" onMouseOut="window.status=;return
true" TITLE="pert"$#@62;无边天际$#@60;/A$#@62;$#@60;/CENTER$#@62;$#@60;/SMALL$#@62;
$#@60;/FONT$#@62;
$#@60;/BODY$#@62;
$#@60;/HTML$#@62;
上一页 [1] [2] |