[Openfirst-cvscommit] awards/admin index.php,1.8,1.9
Brought to you by:
xtimg
From: <xt...@us...> - 2003-09-13 16:41:33
|
Update of /cvsroot/openfirst/awards/admin In directory sc8-pr-cvs1:/tmp/cvs-serv462 Modified Files: index.php Log Message: Bring recent and older changes back up to multiple database compatibility. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/admin/index.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** index.php 13 Sep 2003 15:30:08 -0000 1.8 --- index.php 13 Sep 2003 16:41:26 -0000 1.9 *************** *** 28,32 **** include("../../config/globals.php"); include($header); - mysql_select_db($sqldatabase,$sqlconnection); // Check if user is an admin then allow processes --- 28,31 ---- *************** *** 35,39 **** // If user has posted delete then delete specified record in querystring DELETE if (ISSET($_GET['DELETE'])){ ! ofirst_dbquery("DELETE FROM ofirst_awards WHERE ID = '".$_GET['DELETE']."'") or die("DELETE: ".mysql_error()); echo("<p>Award information has been deleted. [ <a href='./'>Manage Award</a> ]</p>"); --- 34,38 ---- // If user has posted delete then delete specified record in querystring DELETE if (ISSET($_GET['DELETE'])){ ! ofirst_dbquery("DELETE FROM ofirst_awards WHERE ID = '".$_GET['DELETE']."'") or die("DELETE: ". ofirst_dberror()); echo("<p>Award information has been deleted. [ <a href='./'>Manage Award</a> ]</p>"); *************** *** 46,50 **** '".$_POST['award']."', '".$_POST['event']."', '".$_POST['date']. "', '".$_POST['type']."', '".$_POST['recipient']."')") ! or die("INSERT: ".mysql_error()); echo("<p></p>Congratulations on your new award. Award submitted! [ <a href='./'>Manage Award</a> ]</p>"); --- 45,49 ---- '".$_POST['award']."', '".$_POST['event']."', '".$_POST['date']. "', '".$_POST['type']."', '".$_POST['recipient']."')") ! or die("INSERT: ". ofirst_dberror()); echo("<p></p>Congratulations on your new award. Award submitted! [ <a href='./'>Manage Award</a> ]</p>"); *************** *** 60,64 **** Image = '".$_POST['type']."', Recipient = '".$_POST['recipient']."' WHERE ID='" . $_POST["AwardID"] . "';") ! or die("UPDATE: ".mysql_error()); echo("<p></p>Award modifications submitted! [ <a href='./'>Manage Award</a> ]</p>"); --- 59,63 ---- Image = '".$_POST['type']."', Recipient = '".$_POST['recipient']."' WHERE ID='" . $_POST["AwardID"] . "';") ! or die("UPDATE: ".ofirst_dberror()); echo("<p></p>Award modifications submitted! [ <a href='./'>Manage Award</a> ]</p>"); *************** *** 170,174 **** <?php } ! if(mysql_num_rows($query) == 0){ echo "<tr><td> </td><td> </td><td>No awards entered!</td><td> </td><td> </td><td> </td></tr>"; } --- 169,173 ---- <?php } ! if(ofirst_dbnum_rows($query) == 0){ echo "<tr><td> </td><td> </td><td>No awards entered!</td><td> </td><td> </td><td> </td></tr>"; } |