Update of /cvsroot/openfirst/news/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv13330/admin
Modified Files:
index.php
Log Message:
Replace mysql functions with new database functions, allowing multiple database types to be used easily.
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/news/admin/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** index.php 20 Aug 2003 15:03:25 -0000 1.5
--- index.php 23 Aug 2003 20:25:13 -0000 1.6
***************
*** 54,58 ****
$now = date("D M j G:i:s T Y");
! $query = mysql_query("INSERT INTO ofirst_news (date, poster, title, news, image) VALUES ('$now', '$user->user', '" . $_POST["title"] . "', '" . $_POST["news"] . "', '" . $_POST["image"] . "');");
echo("The news item " . $_POST["title"] . " has been added.");
--- 54,58 ----
$now = date("D M j G:i:s T Y");
! $query = ofirst_dbquery("INSERT INTO ofirst_news (date, poster, title, news, image) VALUES ('$now', '$user->user', '" . $_POST["title"] . "', '" . $_POST["news"] . "', '" . $_POST["image"] . "');");
echo("The news item " . $_POST["title"] . " has been added.");
|