RE: [PHP] strange MySQL result problem

2003-10-20 Thread Chris W. Parker
Marek Kilimajer on Friday, October 17, 2003 5:29 PM said: > Is your query correct? Yes. > function query($sql, $current_line) > { [snip] > } I tried your mod and I still saw the error, but your mod did not trigger any output. Chris. -- Don't like reformatting y

Re: [PHP] strange MySQL result problem

2003-10-17 Thread Marek Kilimajer
Is your query correct? Try: function query($sql, $current_line) { $this->Result = mysql_query($sql) or die($this->stop($current_line)); if(!$this->Result) { echo mysql_error(); } $this->Result_total_fields = mysql_num_fields($this->R

[PHP] strange MySQL result problem

2003-10-17 Thread Chris W. Parker
Hey peeps. Let me be quick (or try to at least). Here is a snippet of my db class. function query($sql, $current_line) { $this->Result = mysql_query($sql) or die($this->stop($current_line)); // the following two lines work if they are in the next // method get_query_res