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:
parent
41c2889df2
commit
545ca029e3
|
@ -205,6 +205,13 @@ function getTableColumns( $table, $asString=1 )
|
||||||
return( $columns );
|
return( $columns );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getTableAutoInc( $table )
|
||||||
|
{
|
||||||
|
$sql = "show table status where Name = '".dbEscape($table)."'";
|
||||||
|
$row = dbFetchOne( $sql );
|
||||||
|
return( $row['Auto_increment'] );
|
||||||
|
}
|
||||||
|
|
||||||
function dbFetchMonitor( $mid )
|
function dbFetchMonitor( $mid )
|
||||||
{
|
{
|
||||||
return( dbFetchOne( "select * from Monitors where Id = '".dbEscape($mid)."'" ) );
|
return( dbFetchOne( "select * from Monitors where Id = '".dbEscape($mid)."'" ) );
|
||||||
|
|
Loading…
Reference in New Issue