mirror of
https://git.code.sf.net/p/quake/website
synced 2025-01-19 07:00:49 +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
|
<?php
|
||||||
need ('date sql');
|
need ('date sql');
|
||||||
|
require("news_funcs.php");
|
||||||
$searchString = "'%$string%'";
|
$searchString = "'%$string%'";
|
||||||
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||||
if ($conn) {
|
if ($conn) {
|
||||||
$query = 'SELECT n_date, n_user, n_news FROM news_main WHERE '.
|
$query = 'SELECT n_date, n_user, n_news FROM news_main WHERE '.
|
||||||
'n_news LIKE ' . $searchString . ' ORDER BY n_date DESC';
|
'n_news LIKE ' . $searchString . ' ORDER BY n_date DESC';
|
||||||
$result = @mysql_db_query (sqlDB, $query, $conn);
|
$result = @mysql_db_query (sqlDB, $query, $conn);
|
||||||
echo $query;
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$numRows = @mysql_num_rows ($result);
|
$numRows = @mysql_num_rows ($result);
|
||||||
if ($numRows) {
|
if ($numRows) {
|
||||||
|
|
Loading…
Reference in a new issue