click here to see full coding我在POST-Table中使用类别ID,并在帖子中显示类别ID的类别名称...
一切正常,但在此代码中,空字段显示为已填充...
我的代码..
$getPostName = "SELECT * FROM `category` WHERE cat_ID='$category' LIMIT 1";
$getData = mysql_query($getPostName,$link);
while($record = mysql_fetch_array($getData)):
$postName = $record['cat_title'];
endwhile;
echo $postName;
输出: