ajloun
12-14-2009, 04:39 AM
Hello
How do you Make my Code prints Out the ID of the Inserted Data Immeditaly after Getting the Successful Message . .
$com=$_POST['comment'];
$sql="INSERT INTO ".$DB->prefix("com")." (com)VALUES('$com')";
$result=mysql_query($sql);
if($result){
echo "Successful.. and the ID for this Query is : ...<BR>";
}
else {
echo "ERROR";
}
How do you Make my Code prints Out the ID of the Inserted Data Immeditaly after Getting the Successful Message . .
$com=$_POST['comment'];
$sql="INSERT INTO ".$DB->prefix("com")." (com)VALUES('$com')";
$result=mysql_query($sql);
if($result){
echo "Successful.. and the ID for this Query is : ...<BR>";
}
else {
echo "ERROR";
}