Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all

When i run this code, in the browser display "500 internet server error".
I want to know about this error and solution for it.

Appreciate your comments on this!

thank you

PHP
$con = @mysql_connect("localhost","root","abc123");

if(!$con)
{
 echo("could not connect");
die("not connect");
}
else
{
echo("Sucessfuly connect"); 
}
if(!@mysql_select_db("test"))
{
echo("Unable to connect");
}
else
{
echo("Sucessfuly connect");
}
Posted

 
Share this answer
 
v2
Comments
Soft009 25-Nov-11 3:42am    
thanks for the links.. I check those links before post this question.
This code works fine with the wampserver. But after I publish it on the IIS6, the error comes.
I install php extention in the IIS.
phpinfo();
this works fine in the IIS.
try this link,

http://support.microsoft.com/kb/886216[^]

hope it helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900