mirror of
https://git.code.sf.net/p/quake/website
synced 2025-03-24 01:41:55 +00:00
6
This commit is contained in:
parent
48fa9145be
commit
51262c5766
1 changed files with 2 additions and 2 deletions
|
@ -32,12 +32,12 @@ echo '<TABLE width="100%" cellSpacing="0" cellPadding="0" border="0"> <TR vAlign
|
|||
tableBoxHeader( 'black', tableHeadColor );
|
||||
tableTitle( "Search Results", 1, tableHeadColor );
|
||||
|
||||
$search = "\'%$string\%'";
|
||||
$search = "\'%$string%\'";
|
||||
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||
if ($conn) {
|
||||
$query = 'SELECT n_date, n_user, n_news FROM news_main WHERE '.
|
||||
'n_news LIKE ' . $search . ' ORDER BY n_date DESC';
|
||||
print ($query);
|
||||
echo $query;
|
||||
$result = @mysql_db_query (sqlDB, $query, $conn);
|
||||
if ($result) {
|
||||
$numRows = @mysql_num_rows ($result);
|
||||
|
|
Loading…
Reference in a new issue