[Openfirst-cvscommit] feedback index.php,1.4,1.5
Brought to you by:
xtimg
From: <xt...@us...> - 2003-08-23 20:13:22
|
Update of /cvsroot/openfirst/feedback In directory sc8-pr-cvs1:/tmp/cvs-serv11766 Modified Files: index.php Log Message: Add support for multiple database types Index: index.php =================================================================== RCS file: /cvsroot/openfirst/feedback/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 27 Jul 2003 20:58:12 -0000 1.4 --- index.php 23 Aug 2003 20:13:19 -0000 1.5 *************** *** 31,40 **** echo("<h1>Feedback</h1>"); - mysql_select_db($sqldatabase,$sqlconnection); - // Get a list of the users able to be contacted via the feedback form. ! $query = mysql_query("SELECT * FROM ofirst_feedbackusers ORDER BY name;"); ! if (mysql_num_rows($query) != 0){ if(isset($_POST["to"]) == true) { $messageallowed = false; --- 31,38 ---- echo("<h1>Feedback</h1>"); // Get a list of the users able to be contacted via the feedback form. ! $query = ofirst_dbquery("SELECT * FROM ofirst_feedbackusers ORDER BY name;"); ! if (ofirst_dbnum_rows($query) != 0){ if(isset($_POST["to"]) == true) { $messageallowed = false; *************** *** 46,50 **** <?php } ! while($feedback = mysql_fetch_object($query)){ if(! isset($_POST["to"])) { echo("<option value='$feedback->email'>$feedback->name</option>"); --- 44,48 ---- <?php } ! while($feedback = ofirst_dbfetch_object($query)){ if(! isset($_POST["to"])) { echo("<option value='$feedback->email'>$feedback->name</option>"); |