错误:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/lives/lives/bk/function.php on line 7
函数:
function latest_upload($begin,$end)
{
$sql="select id,uname,name,pic from bk_info order by id desc limit $begin,$end";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
$id=$row['id'];
$uname=$row['uname'];
$name=$row['name'];
$pic=$row['pic'];
echo "<td width=\"170\" height=\"165\" align=\"center\" valign=\"top\" bgcolor=\"#5B5C5B\"><br />
<table width=\"142\" height=\"123\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td align=\"center\" valign=\"middle\" bgcolor=\"#FFFFFF\"><a href=http://topic.csdn.net/t/20061206/14/\"shipin.php?id=$id\" class=\"zi2\"><img src=\"$pic\" width=\"122\" height=\"103\" border=\"0\" alt=\"\" /></a></td>
</tr>
</table>
<span class=\"zi2\"><br />
<a href=http://topic.csdn.net/t/20061206/14/\"shipin.php?id=$id\" class=\"zi2\">$name</a><br />
播客:<a href=http://topic.csdn.net/t/20061206/14/\"yonghu.php?uname=$uname\" class=\"zi2\">$uname</a></span></td>";
}
}
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | id uname row class pic zi2 HTML begin result height |
注册
个人空间
