thxs for the kind reply, i went to that website that you have placed a link for me and read through the code.
Example 1. mysql_insert_id() example
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db('mydb');
mysql_query("INSERT INTO mytable (product) values ('kossu')");
printf("Last inserted record has id %d\n", mysql_insert_id());
?>
There are some parameter that i am quite puzzled with.
What id printf, the site say it output formatted string, but what is a formatted string. i have a very low understanding about what it mean here.
secondly, %id .hmmmm what is that command.. i have never encounter a %id before..
I try those code on my computer but the error say "Too few arguments"
Thxs