mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-24 05:01:23 +00:00
Fix up SQL usage.
This commit is contained in:
parent
6fe6c62876
commit
e51b4f7bde
1 changed files with 3 additions and 4 deletions
|
@ -160,8 +160,7 @@
|
|||
|
||||
function latestNews ($length)
|
||||
{
|
||||
if ($sqlAvail)
|
||||
{
|
||||
if (sqlAvail) {
|
||||
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||
if ($conn) {
|
||||
$query = 'SELECT n_date, n_user, n_news FROM news_main' .
|
||||
|
@ -205,7 +204,7 @@
|
|||
}
|
||||
$date = "$year-$month";
|
||||
|
||||
if ($sqlAvail) {
|
||||
if (sqlAvail) {
|
||||
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||
if ($conn) {
|
||||
$query = 'SELECT n_date, n_user, n_news FROM news_main' .
|
||||
|
@ -237,7 +236,7 @@
|
|||
|
||||
function searchNews ($string)
|
||||
{
|
||||
if ($sqlAvail) {
|
||||
if (sqlAvail) {
|
||||
$search = AddSlashes ("%$string%");
|
||||
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||
if ($conn) {
|
||||
|
|
Loading…
Reference in a new issue