Changeset 28381 for trunk/www


Ignore:
Timestamp:
Aug 30, 2007, 1:44:29 AM (13 years ago)
Author:
jmpp@…
Message:

Missed these two not fully qualified table accesses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/includes/news.inc

    r28379 r28381  
    153153    }
    154154    if(sizeof($errorList) == 0) {
    155       $query = "INSERT INTO headlines (timestamp, title, news) VALUES (NOW(), '$title', '$news')";
     155      $query = "INSERT INTO $newsdb.headlines (timestamp, title, news) VALUES (NOW(), '$title', '$news')";
    156156      $result = mysql_query($query) or die("Error: $query (" . mysql_error() . ")");
    157157      if(!$result) {
     
    216216    }
    217217    if(sizeof($errorList) == 0) {
    218       $query = "UPDATE headlines SET title='$title', news='$news' WHERE id='$id'";
     218      $query = "UPDATE $newsdb.headlines SET title='$title', news='$news' WHERE id='$id'";
    219219      $result = mysql_query($query) or die("Error: $query (" . mysql_error() . ")");
    220220
Note: See TracChangeset for help on using the changeset viewer.