mirror of
https://git.code.sf.net/p/quake/website
synced 2025-01-18 22:51:37 +00:00
ok, should be getting close
This commit is contained in:
parent
a697c41a4c
commit
c2130ea5cc
1 changed files with 1 additions and 2 deletions
|
@ -1,13 +1,12 @@
|
|||
<?php
|
||||
need ('date sql');
|
||||
|
||||
require("news_funcs.php");
|
||||
$searchString = "'%$string%'";
|
||||
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||
if ($conn) {
|
||||
$query = 'SELECT n_date, n_user, n_news FROM news_main WHERE '.
|
||||
'n_news LIKE ' . $searchString . ' ORDER BY n_date DESC';
|
||||
$result = @mysql_db_query (sqlDB, $query, $conn);
|
||||
echo $query;
|
||||
if ($result) {
|
||||
$numRows = @mysql_num_rows ($result);
|
||||
if ($numRows) {
|
||||
|
|
Loading…
Reference in a new issue