Update of /cvsroot/openfirst/awards
In directory sc8-pr-cvs1:/tmp/cvs-serv10278
Modified Files:
index.php
Log Message:
Add support for multiple database types
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/awards/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** index.php 27 Jun 2003 23:16:06 -0000 1.5
--- index.php 23 Aug 2003 20:03:13 -0000 1.6
***************
*** 28,35 ****
include("../config/globals.php");
include($header);
- mysql_select_db($sqldatabase,$sqlconnection);
// Query database for award information
! $query = mysql_query("SELECT * FROM ofirst_awards ORDER BY Date");
$amount = mysql_num_rows($query);
?>
--- 28,34 ----
include("../config/globals.php");
include($header);
// Query database for award information
! $query = ofirst_dbquery("SELECT * FROM ofirst_awards ORDER BY Date");
$amount = mysql_num_rows($query);
?>
***************
*** 50,54 ****
<?php
// Loop through awards ordered by date
! while($awards = mysql_fetch_object($query)){
?>
<tr>
--- 49,53 ----
<?php
// Loop through awards ordered by date
! while($awards = ofirst_dbfetch_object($query)){
?>
<tr>
|