|
Posted by Mike P2 on 05/13/07 00:13
On May 11, 10:28 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Mike,
>
> Actually, he is using the OO mysqli code. But he has multiple problem,
> including:
>
> 1) he never issued a SELECT statement.
> 2) $db is out of scope where it is used
> 3) he's trying to mix mysql commands and mysqli objects
>
> And once he gets these problems fixed he'll have more. He needs a new
> book...
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================
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.
I think that after looking at my example of how it should be, he
should be able to do some more research and/or figure out what he
needs to be doing.
-Mike PII
[Back to original message]
|