cvs: phpweb /manual add-note.php

From: Date: Sat, 22 Sep 2001 05:35:09 +0000
Subject: cvs: phpweb /manual add-note.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6573@lists.php.net to get a copy of this message
jimw Sat Sep 22 01:35:09 2001 EDT Modified files: /phpweb/manual add-note.php Log: only connect when we have a query Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.24 phpweb/manual/add-note.php:1.25 --- phpweb/manual/add-note.php:1.24 Wed Sep 19 14:11:57 2001 +++ phpweb/manual/add-note.php Sat Sep 22 01:35:09 2001 @@ -41,10 +41,10 @@ exit; } -mysql_pconnect("localhost","nobody", ""); -mysql_select_db("php3"); - if (isset($note) && isset($action) && strtolower($action) != "preview"): + mysql_pconnect("localhost","nobody", ""); + mysql_select_db("php3"); + $now = date("Y-m-d H:i:s"); $sect = ereg_replace("\.php$","",$sect); $query = "INSERT INTO note (user, note, sect, ts, lang) VALUES ";

« previous php.mirrors (#6573) next »