我正在尝试编写一个简单的流,从mysql字段中流式传输所有内容。但是我现在的脚本完全没有显示。没有错误,没有任何东西那就是:从数据库中获取并显示错误
include("user_sytem_scripts/connect.php");
$sql_updates = mysql_query("SELECT item_id, username, item_content, update_time FROM updates ORDER BY update_time DESC LIMIT 30") or die("Query failed with error: ".mysql_error());
while($row = mysql_fetch_array($sql_updates)){
$update_id = $row["item_id"];
$update_username = $row["username"];
$item_content = $row["item_content"];
$update_time = $row["update_time"];
$updatestream = '
<table style="background-color:#FFF; border:#999 1px solid; border-top:none;" cellpadding="5" width="100%">
<tr>
<td width="90%" valign="top" style="line-height:1.5em;">
<span class="liteGreyColor textsize9">' . $update_time . ' <a href="profile.php?id=' . $update_username . '"><strong>' . $username . '</strong></a> via <em></em></span><br />
' . $item_content . '
</td>
</tr></table>'; }
然后倒在我使用HTML:<?php echo $updatestream ?>
但正如我所说,我得到什么是绝对..任何人都可以发现,将导致此任何错误或失误一般?谢谢:d
如果您有错误登录,错误将出现在Web服务器的错误日志中。 – jterrace 2011-03-20 03:11:37
你真的使用这个标题(*有没有办法检查用户屏幕分辨率?*),或者在stackoverflow数据库中做了一些事情会感到困惑? – 2011-03-20 03:27:11
仅供参考,PHP有一个叫做[stream](http://us2.php.net/manual/en/book.stream.php)的核心概念,你不在这里使用它们。要小心,错误地使用这个术语可能会在以后引起混淆。 – Charles 2011-03-20 04:10:38