Re: PEAR:DB get the SQL String

From: Date: Sat, 13 Dec 2003 21:36:10 +0000
Subject: Re: PEAR:DB get the SQL String
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9505@lists.php.net to get a copy of this message
Marco Kundert wrote:
Hi all First of all im verry new with Pear and i'm surre this is e newbi question but i diden't found something in the manual or the archiv. I use the folling code to insert a row: $sth = $db->autoExecute($table_name, $table_fields, DB_AUTOQUERY_INSERT); With mysql everything works fine, but with sqlserver driver die ($sth->getMessage()); ouput the folling error: DB Error: Thats not mutch. Is there any possibillity to output the genereated SQL String from prepare, execute or autoexecute, that would be verry usefully. Thanks Marco
Try ->getUserInfo() as well. If you use both, you'll get all you need. -- paperCrane <Justin Patrin>

« previous php.pear.general (#9505) next »