我不知道为什么该代码不起作用...没有错误消息没有...谢谢
<?php require_once('sqlscript.php'); ?>
<?php
$link = mysql_connect('mysql', 'user', 'pass');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db(database);
$sql = 'SELECT * FROM `videos` ORDER BY creation_date desc LIMIT 3';$result=mysql_query($sql);
$row = mysql_fetch_array($result);
while($row = mysql_fetch_array($result))
{
echo '<video width="320" height="240" controls> <source src="/upload/'.$row['path'].'"> Your browser does not support the video tag. </video>
<br />';
}
mysql_close();
?>