$test = "SELECT COUNT(*) FROM " . $config['numbers_table'] . " WHERE number = '" . $number . "'";
$result = sql_dbquery($config['provision_db'], $test);
if ( !$result ) return false;
- $row = mysql_fetch_row($result);
+ $row = @mysql_fetch_row($result);
if ( !$row ) return false;
$num_r = $row[0];
if ( $num_r == 1 ) return true;
if ( $limit && is_numeric( $limit ) )
$query .= " LIMIT " . $limit;
$result = sql_dbquery( $config['provision_db'], $query );
- print mysql_error();
+
if ( !$result ) return null;
- if (mysql_num_rows($result) < 1 ) return null;
+ if ( @mysql_num_rows($result) < 1 ) return null;
$rows = array();
while ( $row = mysql_fetch_assoc( $result ) )
{
$result = sql_dbquery( $config['provision_db'], $query );
- print mysql_error();
+
if ( !$result ) return null;
- if (mysql_num_rows($result) < 1 ) return null;
+ if ( @mysql_num_rows($result) < 1 ) return null;
$rows = array();
while ( $row = mysql_fetch_assoc( $result ) )
{