Yes I need it sequentially and I manage to got it working heres my sample code
$tablename = "Student";
$auto_increment = 0;
$qShowStatus = "SHOW TABLE STATUS LIKE '$tablename'";
$qShowStatusResult = mysql_query($qShowStatus) or die ( "Query failed: " . mysql_error() . "<br/>" . $qShowStatus );
$row = mysql_fetch_assoc($qShowStatusResult);
$auto_increment = $row['Auto_increment'];
echo "auto increment value: $auto_increment";
I will marked it as resolved
Thanks for your reply sir🙂