On Thu, July 7, 2005 10:31 pm, Bjarke Freund-Hansen said:
> Richard Lynch wrote:
>
>>On Thu, July 7, 2005 12:53 pm, Bjarke Freund-Hansen said:
>>
>>
You can't serialize resource objects. Try:
serialize($res->fetch_assoc());
>>>I know I can serialize the array fetch_assoc retu
But why are you going to all of that trouble? What does the
mysqli_result object have that you really need? If you just need the
result set then you can fetch it as an assoc array and serialize that.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
Richard Lynch wrote:
>On Thu, July 7, 2005 12:53 pm, Bjarke Freund-Hansen said:
>
>
>>>You can't serialize resource objects. Try:
>>>
>>>serialize($res->fetch_assoc());
>>>
>>>
>>I know I can serialize the array fetch_assoc returns, but I really need to
>>serialize a mysqli_result, so I ca
On Thu, July 7, 2005 12:53 pm, Bjarke Freund-Hansen said:
>>You can't serialize resource objects. Try:
>>
>>serialize($res->fetch_assoc());
>>
>>
> I know I can serialize the array fetch_assoc returns, but I really need to
> serialize a mysqli_result, so I can feed it to any function expecting a
>
Hi.
I'm having a problem serializing a mysqli_result object, the serialized
string contains only an empty object.
The code is as following:
$sql = new Mysqli("localhost", "user", "pass", "database");
$res = $sql->query("SELECT * FROM xxx WHERE `id` = 1");
print_r($res->fetch_assoc());
echo "\n"
Hi
Evert|Collab wrote:
>You can't serialize resource objects. Try:
>
>serialize($res->fetch_assoc());
>
>
I know I can serialize the array fetch_assoc returns, but I really need to
serialize a mysqli_result, so I can feed it to any function expecting a
mysqli_result.
Are there any alternativ
6 matches
Mail list logo