MySQL/PHP

Status
Not open for further replies.

torok

Ars Tribunus Militum
2,000
Okay, I just added a column as such:

code:<HR>
Code:
$insert = "INSERT INTO post (threadid,username,dateline,pagetext) ".
             "VALUES ('$id','$loginName','".time()."','$text')";
$resultInsert = mysql_query($insert);

One other field that I didn't specify of that table is the Primary Key, which auto increments.

So now I've got this new column, with a new primary key. How do I get that new Primary Key? How can I reference the column that I just created? Thanks.
 
Status
Not open for further replies.