读取数据库记录,存储在数组的问题 $sql="select name,city,age from usertables";$query = mysql_query($sql,$dbconn);$record = mysql_fetch_array($query);print_r($record); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $sql="select name,city,age from usertables";$query = mysql_query($sql,$dbconn);while($row=mysql_fetch_array($query)){ print_r($row);} $sql="select name,city,age from usertables";$query = mysql_query($sql,$dbconn);while($record = mysql_fetch_array($query)){ $值 = $record['字段名']; // ....} $sql="select name,city,age from usertables";$query = mysql_query($sql,$dbconn);while($record = mysql_fetch_array($query)){ $值 = $record['字段名']; ....}想看他的结构就print_r($record); 用php如何给pdf文档添加水印 相当奇怪,file_get_contents直接把结果显示出来 iframe 赋值 有大量组合,这数据库该怎么设计好 DIV问题 自定义function内的变量怎么在其他地方也能用? 如何利用php生成xml文件 上面那个正则表达式匹配的问题解决了 关于session_start()的问题,真不知道搞什么????在线等!!!! 请教随机显示问题 PHP中使用COM的问题! 在MYSQL里一张order表里统计有custorm,其中custorm相同的有多个记录!对者20分给!
$query = mysql_query($sql,$dbconn);while($row=mysql_fetch_array($query)){
print_r($row);
}
$query = mysql_query($sql,$dbconn);
while($record = mysql_fetch_array($query))
{
$值 = $record['字段名'];
// ....
}
$query = mysql_query($sql,$dbconn);
while($record = mysql_fetch_array($query))
{
$值 = $record['字段名'];
....
}
想看他的结构就print_r($record);