So, I'm in need of printing my database data to php page ! I have a table users, where I've Name, E-Mail fields. When I'm trying to select this table and echo field values - I'm getting white page with no errors What this means ? Could you please post some sample of getting data from db and echo'ing them ?
Test Code <?php $con = mysql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $result = mysql_query("SELECT * FROM person"); echo "<table border='1'> <tr> <th>Firstname</th> <th>Lastname</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['FirstName'] . "</td>"; echo "<td>" . $row['LastName'] . "</td>"; echo "</tr>"; } echo "</table>"; mysql_close($con); ?> Code (markup): Change it according to your needs