On Sun, 12 Mar 2006, Michael Stassen wrote:

> To: [EMAIL PROTECTED]
> From: Michael Stassen <[EMAIL PROTECTED]>
> Subject: Re: Checking for good update
> 
> [EMAIL PROTECTED] wrote:
> > looks a bit strange to me.
> > 
> > > $result = mysql_query($query) or die('Query couldn\'t
> > > executed:'.mysql_error());
> > 
> > please try something like this:
>
> Why?  There's nothing wrong with the above statement.

I've never seen logic like that before. It looks to me like 
fbsd_user is trying to use the OR operator outside an if 
statement.

Is the mentioned in the php manual somewhere Michael?

> > I've not tested this - but it looks like you are mixing sending the
> > mysql query and testing for the result of the query at the same time,
> > which AFAIK is not possible.
> 
> You should try it.  It works just fine, and isn't the problem.  The
> problem is that you cannot treat the result of an UPDATE as if it were a
> SELECT.

Regards 

Keith Roberts


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to