This is my output
Kelly Mayes Hello 5654 Detroit Mi 48221 554-5555 jeffery@hello.com php java one
Jamie Fry Hello 5654 Detroit Mi 48221 554-5555 jeffery@hello.com html5 java two
Mary Stewart Hello 5654 Taylor Mi 48174 555-5555 jeffery@hello.com html5 java two
John Marts Hello 5654 Detroit Mi 4812 554-5555 jeffery@hello.com php c one
James Madison Hello Taylor Mi 48174 555-5555 jeffery@hello.com php c one
Evelyn Rose Hello 5654 Detroit Mi 48221 554-5555 jeffery@hello.com html5 java two
With the examples given, I'm unable to pass my variables into the tables
Where would I link the css to this table, when I try I get syntax errors. Or is there an easier way to set the first loop variables to Red, step the 2nd loop to Grey etc..
heres what I have below
<?php
// Make a MySQL Connection
mysql_connect("localhost", "**", "") or die(mysql_error());
mysql_select_db("**") or die(mysql_error());
// Retrieve all the data from the "database" table
$result = mysql_query("SELECT * FROM registration") or die(mysql_error());
echo "<table>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" .$row['firstname']. "</td><td>". $row['lastname']. "</td>";
echo "<td>" .$row['address']. "</td><td>". $row['city']. "</td>";
echo "<td>" .$row['state']. "</td>";
echo "<td>" .$row['zipcode']. "</td><td>". $row['phone1']. "</td>";
echo "<td>" .$row['phonenum']. "</td><td>". $row['email']. "</td>";
echo "<td>" .$row['day1']. "</td><td>". $row['day2']. "</td>";
echo "<td>" .$row['package']. "</td>";
echo "</tr>";
}
echo "</table>";
?>