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>
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>