I can use the following mySQL query to get the AUTO_INCREMENT Value.
SELECT AUTO_INCREMENT  FROM information_schema.tables WHERE table_name = 'node_revision'  and table_schema = 'myDatabase'
But I can't get it using php. please help. I want solution for mysqli
Here PHP code:
$OBdb = new MySQLDB(DBHost, DBUser, DBPassword, DBName);
$sql= "SELECT AUTO_INCREMENT  FROM information_schema.tables WHERE table_name = 'node_revision'  and table_schema = 'mydatabase'";
$result =$OBdb->query($sql);
var_dump($result);

 
    