ok, should be getting close

This commit is contained in:
Dan Olson 2000-06-16 05:38:06 +00:00
parent a697c41a4c
commit c2130ea5cc
1 changed files with 1 additions and 2 deletions

View File

@ -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) {