I am trying to get data from mysql using this template but it is not working and I am unable find errors in below code:
<?php
$connection = mysql_connect("localhost", "root", ""); // Establishing Connection with Server
$db = mysql_select_db("company", $connection); // Selecting Database
//MySQL Query to read data
$query = mysql_query("select * from employee", $connection);
while ($row = mysql_fetch_array($query)) {
echo "<b><a href="readphp.php?id={$row['employee_id']}">{$row['employee_name']}</a></b>";
echo "<br />";
}
?>
I am getting below Error:
Parse error: syntax error, unexpected 'readphp' (T_STRING), expecting ',' or ';'