SyntaxFix
Write A Post
Hire A Developer
Questions
$rows = array(); while($r = mysql_fetch_assoc($result)) { $r["id"] = intval($r["id"]); $rows[] = $r; } print json_encode($rows);