$link_id = mysql_connect("host","user","pass");
The link id is what returned when you connect to mysql. You are connecting, right???
$result = mysql_query("INSERT INTO your_table (text) VALUES ('My Text')");
$last_id_number = mysql_insert_id($link_id);
oh yeah...read the manual!
---John Holmes...