<meta http-equiv= "Content-type" content= "HTML; charset=utf-8"/>
<?php
$lianjie = Mysql_ Connect ("localhost", "root", "Xiaolie") or Die ("Connection failed");
mysql_query ("Set names UTF8");
If (@$_post["OK")
{
mysql_select_db ("Xiaolie");
//Insert data
$shuju = INSERT into Hao (name, Neirong,shijian) VALUES (' ". $_post[" Name "]." ', ' ". $_post[" Neirong "]." ', ' ". Date (" Y-m-d h:m:s ").
$fasong = mysql_query ($shuju) or Die (Mysql_error ());
if ($fasong)
{
header ("location:/a2/ly.php");
}
else
{
echo Content Publishing failed <br><a href=fb_my.php> return </a>
}
}
Else
{
/* mysql_select_db ("Xiaolie");
//Send Query
$fasong = mysql_query ("select * from Hao") or Die (Mysql_error ());
while ($nr = Mysql_ Fetch_array ($fasong))
{
echo <table border=1>
<tr
<td width= ' > '. $nr [id]. "Building </td>
&NBSP;&NBSP;<TD width= ' 140 ' > Published User: ". $nr [" name]. " </td>
<TD width= ' 230 ' > Publication time: ". $nr [" Shijian "]." </td>
</tr>
<tr><td colspan= ' 3 ' width = ' 430 ' > '. $nr ["Neirong"]. " </td></tr>
</table>
}
*/
<form method=post Action=fb_my.php>
name <input type=text name= "name"/><BR>
Published <br><textarea name= "Neirong" cols= "5" rows=;
<input type=submit name= "OK" value= "OK"/>
</form>
<?php
}
?>