[eluser]Vik[/eluser]
I have a join command that was perfectly generated by CI:
Code:
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 CI, when it comes time to execute it in the _execute function in mysql_driver.php:
Code:
function _execute($sql)
{
$sql = $this->_prep_query($sql);
return @mysql_query($sql, $this->conn_id);
}
...it seems to halt PHP execution. The next line of 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 in CI without the join command, like this:
Code:
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 in advance to all for any thoughts.
[Note - something's garbling the % signs in the mySQL code. It should say percent-sign "copper" percent-sign.]