请给我一只手从数据库中检索数据并显示它。从数据库检索数据
我学习,这是从推进:(
抱着我,我有:
$result = mysql_query($sql);
$num_reg = mysql_num_rows($result);
echo $num_reg; // this shows 3
while($row = mysql_fetch_assoc($result))
{
foreach($row as $value)
{
//Now I need to operate with the rows values.
echo $row['PHONE'];
但是这不是打印的电话号码,将它们打印5次,每次
什么我做错了吗?
非常感谢
非常感谢所有人,现在我可以继续! – user523129 2010-12-23 15:03:41