[PHP] quick newbie q: mysql_insert_id()

2004-07-05 Thread Christopher J. Mackie
If I want to use PEAR DB to handle my database connections, how do I retrieve the recordID (primary key) added when I run an INSERT query? mysql_insert_id($db_object) doesn't seem to work if the object is PEAR, and the PEAR docs don't seem to show the same function. Tx, --CJ -- PHP General Mail

[PHP] PEAR Mail/smtp sending problem

2004-05-30 Thread Christopher J. Mackie
I'm following the PEAR docs to use Mail/SMTP. Below is the code I use, swiped directly from the docs--I've changed the authorization data to protect privacy, but otherwise it's identical (and email sent from a client on this same machine using the same settings works fine). I'm running PHP 4.3.6 I