|
Posted by Jerry Stuckle on 05/14/07 14:45
Mike P2 wrote:
> On May 12, 11:07 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> Mike,
>>
>> But what you're doing is even worse - mixing OO and non-OO calls to the
>> database. Your mysql() calls will not update the variables in the
>> mysqli objects for instance.
>>
>> You shouldn't try to mix and match mysql and mysqli code in the same
>> page - it's just asking for trouble.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
> I did not mix OO and non-OO calls.
>
> -Mike PII
>
Oops - sorry for the blank reply.
Actually, you did. To quote your previous message:
"I realize that. I fixed those things in my example. The DB being out
of scope doesn't really matter, he's not passing $db to the MySQL
functions anyway. The connection is open, and PHP will find it."
$db is a mysqli (OO) object. You were making mysql_xx (non-OO) calls to
the database.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|