Im back with another problem. Same as usual for your help I'll give you mine. I will code in html for you or graphic design for any web site you need help with.
so basicaly whats wrong is that all my info is not showing up on the table. click on the link to see the problem.
http://gamewars.x10hosting.com/availablexbox360wars.php
code
<?php
$con = mysql_connect("localhost","gamewars_gamewars","xxxxxx");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("gamewars_xbox360postedwars", $con);
$result = mysql_query("SELECT * FROM post");
echo "<table border='1'>
<tr>
<th>firstname</th>
<th>lastname</th>
<th>quantity</th>
<th>items</th>
<th>players</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['firstName'] . "</td>";
echo "<td>" . $row['lastName'] . "</td>";
echo "<td>" . $row['quantity'] . "</td>";
echo "<td>" . $row['items'] . "</td>";
echo "<td>" . $row['players'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
so basicaly whats wrong is that all my info is not showing up on the table. click on the link to see the problem.
http://gamewars.x10hosting.com/availablexbox360wars.php
code
<?php
$con = mysql_connect("localhost","gamewars_gamewars","xxxxxx");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("gamewars_xbox360postedwars", $con);
$result = mysql_query("SELECT * FROM post");
echo "<table border='1'>
<tr>
<th>firstname</th>
<th>lastname</th>
<th>quantity</th>
<th>items</th>
<th>players</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['firstName'] . "</td>";
echo "<td>" . $row['lastName'] . "</td>";
echo "<td>" . $row['quantity'] . "</td>";
echo "<td>" . $row['items'] . "</td>";
echo "<td>" . $row['players'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
Last edited: