Hi,
I still cannot return no results if the default value is set to -1.
Is it because I used the wild cards in my sql? (for e.g., I used like and%)?
mysql_select_db($database_books, $books);
$query_Rssearch = sprintf("SELECT * FROM books WHERE books.Title like %s OR books.Author like %s OR books.Publisher like %s OR books.ISBN like %s", GetSQLValueString("%" . $colname_Rssearch . "%", "text"),GetSQLValueString("%" . $colname_Rssearch . "%", "text"),GetSQLValueString("%" . $colname_Rssearch . "%", "text"),GetSQLValueString("%" . $colname_Rssearch . "%", "text"));
$query_limit_Rssearch = sprintf("%s LIMIT %d, %d", $query_Rssearch, $startRow_Rssearch, $maxRows_Rssearch);
$Rssearch = mysql_query($query_limit_Rssearch, $books) or die(mysql_error());
$row_Rssearch = mysql_fetch_assoc($Rssearch);
Thanks!