How I can correct php code which runs at php designer but not in web browser.?

  • Thread starter Thread starter Manasi
  • Start date Start date
M

Manasi

Guest
Unable to debug why not running in browser?
page link with home page. When click on link msg: HTTP 500 - Internal server error
Internet Explorer
***************************
<html><body>
<?php
$con = mysql_connect("localhost","NamoTech","123456");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("NamoTech_db", $con);

$result = mysql_query("SELECT * FROM Persons ");//WHERE FirstName='Ankit'");

while($row = mysql_fetch_array($result))
{
echo $row['FirstName'] . " " . $row['LastName']." " . $row['Age'];
echo "<br />";
}
?>
</body>
</html>
 
Back
Top