Added next auto inc function

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2825 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2009-03-31 10:53:51 +00:00
parent 41c2889df2
commit 545ca029e3
1 changed files with 7 additions and 0 deletions

View File

@ -205,6 +205,13 @@ function getTableColumns( $table, $asString=1 )
return( $columns );
}
function getTableAutoInc( $table )
{
$sql = "show table status where Name = '".dbEscape($table)."'";
$row = dbFetchOne( $sql );
return( $row['Auto_increment'] );
}
function dbFetchMonitor( $mid )
{
return( dbFetchOne( "select * from Monitors where Id = '".dbEscape($mid)."'" ) );