Re: [PHP] can't figure out this mysql error

2004-01-27 Thread Jason Wong
On Tuesday 27 January 2004 02:23, Chris W. Parker wrote: > If I put the two functions mysql functions within the query method I > created I get an error on those two lines BUT the program continues as > normal WITH the data being printed to the page just as I want it to. > Clearly the mysql resour

RE: [PHP] can't figure out this mysql error

2004-01-26 Thread Chris W. Parker
Jason Wong on Friday, January 23, 2004 10:03 PM said: > Time to put the php debugger in action -- echo all your variables to > see that contain what you expect them to contain. 'echo $this->Result;' prints "Resource id #2" 'print_r($this->Result);' prints "Resource

Re: [PHP] can't figure out this mysql error

2004-01-23 Thread Jason Wong
On Saturday 24 January 2004 01:07, Chris W. Parker wrote: > on Friday, January 23, 2004 8:54 AM said: > > All of what you say makes sense. Hopefully your suggestion will help > > me find the problem! > > In looking through my code I see that I already do this. EVERY call to a > mysql function

RE: [PHP] can't figure out this mysql error

2004-01-23 Thread Chris W. Parker
Chris W. Parker <> on Friday, January 23, 2004 8:54 AM said: > All of what you say makes sense. Hopefully your suggestion will help > me find the problem! In looking through my code I see that I already do this. EVERY call to a mysql function has "or die($this->stop("$current_line:".__LINE__)

RE: [PHP] can't figure out this mysql error

2004-01-23 Thread Chris W. Parker
Jason Wong on Thursday, January 22, 2004 8:49 PM said: > The if-clause will never be evaluated because if there had been an > error your program would have dieded on the previous line. Heh.. yeah I thought about that as I was examining the code for this post. But th

Re: [PHP] can't figure out this mysql error

2004-01-22 Thread Jason Wong
On Friday 23 January 2004 09:38, Chris W. Parker wrote: > function query($sql, $current_line) > { > $this->Result = mysql_query($sql) or die($this->stop($current_line)); > > if(!$this->Result) > { > echo mysql_error(); > } The if-clause will never be evaluated because if there had be