7

I have a php/mysql project and I am currently trying to display a table into an html table through PHP how ever Only the headers are getting returned not the actual table data, here is my query plus html table

<?php
    $result = mysql_query("SELECT * FROM store");

echo"<table border = '1'>
    <tr>
    <th>Phone</th>
    <th>Email</th>
    <th>Address</th>
    </tr>";

while($row = mysqli_fetch_array($result))
{
    echo "<tr>";
    echo "<td>" . $row['phone'] . "</td>";
    echo "<td>" . $row['email'] . "</td>";
    echo "<td>" . $row['address']. "</td>";
    echo "</tr>";

}
echo "</table>"
?>

any ideas as to why the table data may not be displaying?

Cheers!

Votes + Comments
tested
are you any good at php?
1
Contributor
1
Reply
7
Views
2 Years
Discussion Span
Last Post by [NOPE]FOREVER
7

Never mind, it turned out that the server was offline :p

Votes + Comments
tested
server
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.