並且讓數字不加引號
$sth = mysql_query("SELECT ...");
$rows = array();
while($r = mysql_fetch_assoc($sth))
{
while($elm=each($r))
{
if(is_numeric($r[$elm["key"]])){
$r[$elm["key"]]=intval($r[$elm["key"]]);
}
}
$rows[] = $r;
}
沒有留言:
張貼留言