|
OK, I have everything up but it don't work. This is the script I have:
<?
// display_racers.php
// connect to your db
include("vSignup/auth.php");
// get select information from db and order by score in descending order.
//This example will show the top 10 racers
// If you want to see all racers.. leave out "Limit 10" in the query
$result=mysql_query("select * from racers order by score desc limit 10");
$num=mysql_result($result);
// start a table
echo "<table border=1 cellspacing=5 cellpadding=0>";
// define loop ..
for($i=0;$i<$num;$i++){
// get data from each row of the result
$name=mysql_result($result,$i,"name");
$score=mysql_result($result,$i,"score");
// echo your newy defined variables to the screen
echo "<tr><td align=right><font size=2> $name: </td>
<td><font size=2> $score</td></tr>";
}
// above the loop just ended .. and below we close the table and page
echo "</table>
</body>
</html>";
?>
<form method=post action=php_self>
1st place <input type=text name=racer_1><br>
2nd place <input type=text name=racer_2><br>
3rd place <input type=text name=racer_3><br>
4th place <input type=text name=racer_4> <input type=submit name=submit value=Submit>
</form>
Please tell me what I did wrong. The auth page connects me to the server and stuff. All that comes up is the form then when I enter something in and press submit the code says 502 connection failed. Can you please tell me what is wrong. Thanks
|