Hi,
I'm new to PHP; I installed version 5.0.3 using Apache 2 and Postgres 8 on
Win XP SP2. I have a connection class and one of its methods is:
public function EjecutaSQL($pe_textoSQL = "")
{
return pg_query($this->id, $pe_textoSQL);
}
where $pe_textoSQL contains the SQL sentence. If
hello,
how can i use error_log( ) function
to capture the error occured in my server,
currently the Error warning is switched off
and i can't turn it on because it is in production server
the problem is the query miss some records,
and i didn't see it's error message
beside this code
$err=my
When a database connection fails, how do I detect that in my script so I can
skip all the rest?
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PRO
i have a script that
update records with this construct:
while( ){
query_string='UPDATE ...';
updateRecord(query_string);
}
the problem is when there are wrong query_string (such as incorect syntax)
can i make sure that the other query, the next one after the wrong query
sti
John,
$link_id = mysql_connect($database); //identify connection handle
if (!$link_id) { die(sql_error()); } //test for connection handle
Regards,
Jaxon
On 1/20/01 11:57 AM, "John Coonrod" <[EMAIL PROTECTED]> wrote:
> When a database connection fails, how do I detect that in my script so I
Chenri wrote:
i have a script that
update records with this construct:
while( ){
query_string='UPDATE ...';
updateRecord(query_string);
}
the problem is when there are wrong query_string (such as incorect syntax)
can i make sure that the other query, the next one after the wrong
sorry for posting this mail twice, but the first one doesn't appear on the
news server (posting with google, doesn't work...)
Hi,
when I insert a new record with a unique indexed attribute, which is
already in the table, I only get some php warnings:
Warning: MS SQL message: Cannot insert dupli