Hola
Trato de mudar mis sitios a un servidor diferente (Blue Host), encontré que los scripts para "insert" y "update" no funcionan en ese nuevo server.
recibo el error log:
"mysql_query(): supplied argument is not a valid MySQL-Link resource in........."
En el server anterior si funcionan sin problemas. Creo entonces que se debe a una configuracion diferente del nuevo servidor .
Alguien puede darme idea de donde buscar?
Ya compare los PHP.INI, cambié "magic_quotes=On" y en apache le añadí el "Handler-mod_rewrite", `pero ya no tengo ideas y sigue enviándome el error log.
Aquí parte del código, la fila donde señala el error log es en donde pongo ***
function setSQL($i_SQL) {
$this->SQL = $i_SQL;
}
function setConnection(&$i_connection, $i_databasename) {
$this->connection = $i_connection;
$this->databasename = $i_databasename;
}
if ($this->SQL) {
***mysql_select_db($this->databasename, $this->connection);
if (!is_array($this->SQL)) {
*** $this->transactionResult = mysql_query($this->SQL, $this->connection);
} else {
for ($i=0;$i<sizeof($this->SQL);$i++) {
$this->transactionResult = mysql_query($this->SQL[$i], $this->connection);
if (!$this->transactionResult) {
break;
}
}
}
if (!$this->transactionResult) {
$this->errorNo = KT_TRANSACTION_FAILED;
$this->errorMsg = 'Transaction failed!<br>Your SQL: <br>' . $this->SQL . '<br>Error Msg: <br>' .mysql_error() . '<br>';
$this->executeErrorTriggers();
return;
}
}
Su ayuda será agradecidísima.