[28381] trunk/www/includes/news.inc

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 29 18:44:30 PDT 2007


Revision: 28381
          http://trac.macosforge.org/projects/macports/changeset/28381
Author:   jmpp at macports.org
Date:     2007-08-29 18:44:29 -0700 (Wed, 29 Aug 2007)

Log Message:
-----------
Missed these two not fully qualified table accesses.

Modified Paths:
--------------
    trunk/www/includes/news.inc

Modified: trunk/www/includes/news.inc
===================================================================
--- trunk/www/includes/news.inc	2007-08-30 01:38:03 UTC (rev 28380)
+++ trunk/www/includes/news.inc	2007-08-30 01:44:29 UTC (rev 28381)
@@ -152,7 +152,7 @@
       $count++;
     }
     if(sizeof($errorList) == 0) {
-      $query = "INSERT INTO headlines (timestamp, title, news) VALUES (NOW(), '$title', '$news')";
+      $query = "INSERT INTO $newsdb.headlines (timestamp, title, news) VALUES (NOW(), '$title', '$news')";
       $result = mysql_query($query) or die("Error: $query (" . mysql_error() . ")");
       if(!$result) {
 	die("Error: $result.");
@@ -215,7 +215,7 @@
       $count++;
     }
     if(sizeof($errorList) == 0) {
-      $query = "UPDATE headlines SET title='$title', news='$news' WHERE id='$id'";
+      $query = "UPDATE $newsdb.headlines SET title='$title', news='$news' WHERE id='$id'";
       $result = mysql_query($query) or die("Error: $query (" . mysql_error() . ")");
 
       if(!$result) {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070829/3a6a987a/attachment.html


More information about the macports-changes mailing list