Retrieving MySQL LONGTEXT data using mysqli
Posted: Sun Dec 10, 2006 2:05 pm
feyd | Please use
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.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have some code, along the lines of the following, where the column it is selecting is of the type LONGTEXT, from a MySQL database.Code: Select all
$stmt = $mysqli->prepare(... LIMIT 1);
$stmt->bind_param(...);
$stmt->execute();
$stmt->bind_result($longtext_value);
$stmt->fetch();Am I doing something wrong? If I use the exact same query, but select a different column such as an INT, it works fine.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]