JOIN Command Runs Fine in phpMyAdmin, but Hangs when Run in PHP?
am 18.08.2007 03:08:53 von Vik RubenfeldI have the following join command:
> select * from metal_desc join abbrev on metal_des.ndb_no =
> abbrev.ndb_no where long_desc like 'copper' order by long_desc
I ran it in the phpMyAdmin Query window, and it ran perfectly, and came
back with the correct results.
But when I run it in PHP:
> return @mysql_query($sql, $this->conn_id);
....it seems to halt PHP execution. The next line of PHP code never runs.
It's like PHP or MySQL is hanging.
Checking the server error logs for PHP, MySQL, and Apache, shows no
errors.
When I run a Query without the join command, like this:
> select * from metal_desc where long_desc like 'copper' order by
> long_desc
....everything runs perfectly.
Does anyone have any notion what could be causing this?
Thanks very much in advance to all for any info.