Forum Moderators: coopster
$stmt = $mysqli->prepare(... LIMIT 1);
$stmt->bind_param(...);
$stmt->execute();
$stmt->bind_result($longtext_value);
$stmt->fetch();
The $longtext_value variable just contains garbage however (i.e. random symbols).
Am I doing something wrong? If I use the exact same query, but select a different column such as an INT, it works fine.
Since I first posted, I have tried using the following, and it prints out the result correctly.
$stmt = $mysqli->query("SELECT ... LIMIT 1");
$row = $stmt->fetch_row();
print($row[0]); I don't know what to make of it, but at least I have something working.