Jump to content

mysql codes is not working on local server:(????


naveenbj

Recommended Posts

Hello Friends ,

 

Im getting a n error on my local host i hope you all can help me.

--------

On my local server i can able to acess the PHP files but whn i m trying with the files which hav mysql codes its showing me some 500 HTTP INTERNAL error.

Im not getting wht the exact problem .

i got through to some other forums by searching this problem on google but still not able to get the ans.

------------------

 

I know my description is not very good but i hope you can able to get wht i want to say:)

 

Best Regards,

Nj

Important info we need to know;

 

What OS?

Are you using one of the the many AMP's out there? (XAMPP, WAMP, etc)

Are you using IIS w/ PHP?

 

This will help in diagnosing what the problem is/getting to the bottom of it.

 

Thanks for reply!!

#OS is windows XP pro.

#IIS w/PHP

Important info we need to know;

 

What OS?

Are you using one of the the many AMP's out there? (XAMPP, WAMP, etc)

Are you using IIS w/ PHP?

 

This will help in diagnosing what the problem is/getting to the bottom of it.

 

Did you get wht i mean  and are you able to help me on this

if yes thn please i will be vry thnkful to you:)

All my sql code

But here is the code which i used first time

<?php
$link = mysql_connect('localhost', 'root', 'admin');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?> 

 

I kno tht its not a matterof codes .Its a matter of sm configuration (maybe)

 

--------------

Regards,

nj

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.