The problem is Weird actually sorry if i'm asking something stupid but i just want to know if it can be done or not....
Add.php
<form method="post" action="info.php">
<input name="Car_name" type="text">
<input name="Car_color" type="text">
<button type="submit" name="save" > save </button>
</form>
this page is add.php from here a post request is generated to page message.php. In this page we pass the Query like this..
Message.php
if(isset($_POST['save'])){
mysql_query("insert into Car_data where Car_name='".$_POST['Car_name']."',Car_color='".$_POST['Car_color']."'");
}
but i want to print the Auto incremented id of this inserted data..
For once i thought i can take a condition where i can check $_POST['Car_name']&&$_POST['Car_color']
but there can be many car with same color and name like red Ferrari.. Some is there any possible way to get id of that element just inserted ???