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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.