1
<html>
<Body>
<?php
mysql_connect("localhost","root","");
mysql_select_db("school_images");
$res=mysql_query("select *from table1");
echo "<table>";
while($row = mysql_fetch_array($res))
{
echo "<tr>";
echo "<td>"?> <img src="<?php echo $row[" images1 "]; ?>" height="100" width="100"> <?php echo "</td>";
echo "</td>";echo $row["name"];echo "</td>";
echo "</tr>";
}
echo "</table>";
</Body>
</html>
?>
上的文件保存为school_images调用未定义的函数mysql_connect()函数。当我想插入图片我的PHP页面
,当我键入localhost /项目/ school_images.php