mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-10 23:32:38 +00:00
More debugging.
This commit is contained in:
parent
f68c026b1a
commit
4d59908b8a
1 changed files with 3 additions and 3 deletions
|
@ -242,14 +242,14 @@
|
|||
{
|
||||
if (sqlAvail) {
|
||||
$search = AddSlashes ("%$string%");
|
||||
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||
$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';
|
||||
$result = @mysql_db_query (sqlDB, $query, $conn);
|
||||
$result = mysql_db_query (sqlDB, $query, $conn);
|
||||
if ($result) {
|
||||
$numRows = @mysql_num_rows ($result);
|
||||
$numRows = mysql_num_rows ($result);
|
||||
if ($numRows) {
|
||||
for ($i = 0 ; $i < $numRows ; $i++) {
|
||||
$news[$i] = mysql_fetch_array ($result);
|
||||
|
|
Loading…
Reference in a new issue