Thread: logging in
View Single Post
Old 04-30-2008, 05:11 PM   #16 (permalink)
ricrhys
The Wanderer
 
ricrhys's Avatar
 
Join Date: Apr 2008
Posts: 9
Thanks: 0
ricrhys is on a distinguished road
Default

getting lost doh! sorry to keep bugging you, do i still have all the same stuff as for the whole table but then when it gets to the "while" thats where i have to change yes? how do i tell the table to return whats lower or higher than the $_POST[price]

<?php $conn = pg_connect("host=database.dcs.aber.ac.uk
port=5432 dbname=teaching
user=csguest password=rohishe");
$conn = pg_connect("host=database.dcs.aber.ac.uk
port=5432 dbname=teaching user=csguest password=******");
$res = pg_query ($conn, "select * from TopGames");
echo "<table border='1'>";
while ($a = pg_fetch_row($res)) {
echo "<tr>";
for ($j = 0; $j < pg_num_fields($res); $j++) {
echo "<td>" . $a[$j] . "</td>";
}
echo "</tr>";}
echo "</table>\n";?>

Last edited by ricrhys : 04-30-2008 at 06:15 PM.
ricrhys is offline  
Reply With Quote