我对此代码有疑问。如何打印我正在获取的值?它没有显示任何东西。
<?php
$comm = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("abhijit", $comm);
$new=$_POST['comment'];
$insert=mysql_query("INSERT INTO comment(post) VALUES('$new')");
$str="SELECT * FROM comment";
$rom=mysql_fetch_array($str);
echo $rom['post'];
mysql_close($comm);
?>