diff --git a/news_funcs.php b/news_funcs.php index 9d8b767..ed65795 100644 --- a/news_funcs.php +++ b/news_funcs.php @@ -30,13 +30,14 @@ function searchNews ($string) need ('date sql'); echo '
'; tableBoxHeader( 'black', tableHeadColor ); - tableTitle( $pageName, 1, tableHeadColor ); + tableTitle( "Search Results", 1, tableHeadColor ); $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'; +echo $query; $result = @mysql_db_query (sqlDB, $query, $conn); if ($result) { $numRows = @mysql_num_rows ($result); @@ -55,7 +56,7 @@ echo 'SQL error, please contact the webmaster.'; } - tableBoxFooter(); + tableBoxFooter(); echo '
'; } ?>