Hi Team,
I am newbie to PHP. I am in a process of installing and configuring the intial setup of apache: 2.0.59, php 5.2.5 and mysql: 5.0.45.
I am having issues in establishing connection with PHP to MYSQL. I am encountring an error message stating HTTP error Internal server 500. Please, the find the attachment for the error message screen shot.
The code I am using to connect MYSQL through PHP is as follows:
<?php
$con = mysql_connect("localhost:3306","monty","some_pass");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}// some codemysql_close($con);
?>
Thanks for any assistance in advance.
Cheers,
Krishna Kanigelpula.