more removal of quotes

This commit is contained in:
Isaac Connor 2013-10-17 17:05:50 -04:00
parent ef765afa2d
commit 92591a6835
1 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ function getTableColumns( $table, $asString=1 )
function getTableAutoInc( $table ) function getTableAutoInc( $table )
{ {
$sql = "show table status where Name = '".dbEscape($table)."'"; $sql = "show table status where Name = ".dbEscape($table);
$row = dbFetchOne( $sql ); $row = dbFetchOne( $sql );
return( $row['Auto_increment'] ); return( $row['Auto_increment'] );
} }
@ -338,12 +338,12 @@ function getTableDescription( $table, $asString=1 )
function dbFetchMonitor( $mid ) function dbFetchMonitor( $mid )
{ {
return( dbFetchOne( "select * from Monitors where Id = '".dbEscape($mid)."'" ) ); return( dbFetchOne( "select * from Monitors where Id = ".dbEscape($mid) ) );
} }
function dbFetchGroup( $gid ) function dbFetchGroup( $gid )
{ {
return( dbFetchOne( "select * from Groups where Id = '".dbEscape($gid)."'" ) ); return( dbFetchOne( "select * from Groups where Id = ".dbEscape($gid) ) );
} }
?> ?>