I must have read all the similar posts here but still cant figure out why this is happening.
My code:
$stmt = $this->db->stmt_init();
$stmt->prepare("SELECT Table1.id,Name,type,text,fname,lname FROM Table1, Table2 WHERE Table1.email = Table2.email AND type='text' AND Table1.Id=?");
$stmt->bind_param("i", $id);
$stmt->bind_result($legTxtId,$legTxtName, $legTxtType, $legTxtText, $legTxtFname, $legTxtLname);
$stmt->execute();
$results = array();
while($stmt->fetch())
{
$results[] = array(
'legTxtId' => $legTxtId , 'legTxtName' => $legTxtName , 'legTxtType' => $legTxtType ,
'legTxtText' => $legTxtText , 'legTxtFname' => $legTxtFname ,
'legTxtLname' => $legTxtLname );
}
$stmt->close();
return $results;
Now I am using the exact same code in a different function that is called before this one and it works fine even though it returns one more field.
This one in particular only returns 1 row with just plain short text (no photos or anything) so it should not fail cause its definitely less than 64M.
Can anyone see what the problem is?