if (isset($_POST['submit'])){ $xingming=$_POST['xingming']; $sql="SELECT * FROM qua WHERE xingming=".$xingming.""; $query=mysql_query($sql); while($row=mysql_fetch_row($query)) {
echo '
'; foreach($row as $v) echo "
$v
"; echo '
'; } } ?> 求帮助 查询这个弄好几天了 还是出不来= =
回复讨论(解决方案)
php 不是告诉你有错吗?
$sql="SELECT * FROM qua WHERE xingming='$xingming'";$query=mysql_query($sql) or die(mysql_error());