首页上一页 1 下一页尾页 1 条记录 1/1页
PHP项目开发全程实录 第3章 出现错误
发表在PHP图书答疑
2010-04-16
是否精华
是
否
版块置顶:
是
否
function read_field($conn,$tablename,$fieldname,$n_id){
$sqlstr = "select ".$fieldname." from ".$tablename." where id = ".$n_id;
$result = mysql_query($sqlstr,$conn);
$rows = mysql_fetch_row($result);
return $rows[0];
}
$sqlstr = "select ".$fieldname." from ".$tablename." where id = ".$n_id;
$result = mysql_query($sqlstr,$conn);
$rows = mysql_fetch_row($result);
return $rows[0];
}