I am woking on a project . I am sending mysql data from server to my android app via json. Here is my code on server.
while ($r = mysql_fetch_assoc($result)) {
$rows["sno"] = $r['sno'];
$rows["sender"] = $r['sender'];
$rows["subject"] = $r['subject'];
$rows["message"] = $r['message'];
$rows["date"] = date("M j, Y, g:i a",$r['date']);
}
echo json_encode(array('mail' => $rows));
When message < 600 characters are encoded, I get it on my application. But any messages > 600 characters will be send as null to my application. Where am I doing mistake?