I am trying to access a mysql server on a remote machine using php. I tried viewing data in table, I am using below php script. Please let me know if I am missing something.
<?php
$conn = mysql_connect("192.168.1.1","root","password");
$db = mysql_select_db("charan", $conn);
?>
<?php
echo "<ul>";
$sql = "select * from arista";
$query = mysql_query($sql);
while ($row = mysql_fetch_array($query)) {
echo "<li>Username:$row[0]</li><li>DOB:</li><br/>";
}
?>
;` - parse errors. – Funk Forty Niner Dec 17 '15 at 16:40