while($row = mysql_fetch_array($retval, MYSQL_ASSOC))
{
echo "<tr>";
echo "<td><p>{$row['tittel']}</p></td>";
echo "</tr>";
echo "<tr>";
echo "<td><textarea rows='1' cols='64' style='no-resize;'>{$row['video']}</textarea></td>";
echo "<td><form method='GET' action='delete.php'>";
echo "<input type='hidden' name='delete_id' value='{$row['id']}'/>";
echo "<input type='submit' name='submit' value='Delete' style='margin-bottom: 30px;'>";
echo "</form></td>";
echo "</tr>";
}
它可能是基本的東西,但我還在學習。如果沒有從數據庫中獲取結果,如何使此代碼顯示文本消息?
預先感謝您!
! MYSQL_函數已被棄用!請使用mysqli或PDO_mysql代替! – Svetoslav 2013-04-26 08:50:13