Member Avatar for [NOPE]FOREVER

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!

joyc123 commented: are you any good at php? +0
thelove commented: tested +0
Member Avatar for [NOPE]FOREVER

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

commented: server +0
commented: tested +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.