Welcome Guest, Not a member yet? Register   Sign In
Hi There, some odd DB issues..
#6

[eluser]Noy Gabay[/eluser]
still not doin' the trick..

So, I went all the way to the database/drivers/mysql/mysql_driver, and looked at this (line #137):
Code:
function _execute($sql)
    {
        $sql = $this->_prep_query($sql);
        return @mysql_query($sql, $this->conn_id);
    }

When I echo the $sql, it looks fine. Works well as SQL input in phpMyAdmin.

The weird thing is, that if I take the echoed string (value of $sql) and put it instead of the variable, like this:
Code:
return @mysql_query("UPDATE `sitewide` SET `Title` = 'Title Title', `Content` = 'Content Content' WHERE `ID` = 1 ", $this->conn_id);
It updates the DB!

I'm not even sure how to debug such a thing..


Messages In This Thread
Hi There, some odd DB issues.. - by El Forum - 08-24-2009, 11:54 AM
Hi There, some odd DB issues.. - by El Forum - 08-24-2009, 01:37 PM
Hi There, some odd DB issues.. - by El Forum - 08-24-2009, 03:08 PM
Hi There, some odd DB issues.. - by El Forum - 08-25-2009, 01:13 AM
Hi There, some odd DB issues.. - by El Forum - 08-25-2009, 01:23 AM
Hi There, some odd DB issues.. - by El Forum - 08-25-2009, 01:38 AM
Hi There, some odd DB issues.. - by El Forum - 08-25-2009, 09:18 AM
Hi There, some odd DB issues.. - by El Forum - 08-25-2009, 09:57 AM
Hi There, some odd DB issues.. - by El Forum - 08-25-2009, 10:08 AM
Hi There, some odd DB issues.. - by El Forum - 08-25-2009, 10:22 AM
Hi There, some odd DB issues.. - by El Forum - 08-25-2009, 10:25 AM
Hi There, some odd DB issues.. - by El Forum - 09-24-2009, 12:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB