naveenbj Posted January 15, 2008 Share Posted January 15, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/86081-mysql-codes-is-not-working-on-local-server/ Share on other sites More sharing options...
awpti Posted January 15, 2008 Share Posted January 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/86081-mysql-codes-is-not-working-on-local-server/#findComment-439558 Share on other sites More sharing options...
naveenbj Posted January 15, 2008 Author Share Posted January 15, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/86081-mysql-codes-is-not-working-on-local-server/#findComment-439559 Share on other sites More sharing options...
naveenbj Posted January 15, 2008 Author Share Posted January 15, 2008 And one more thing >>the error is "500HTTP Internal Server Error" I forgot to write "server" so sry for tht:) Best Regards, Nj Quote Link to comment https://forums.phpfreaks.com/topic/86081-mysql-codes-is-not-working-on-local-server/#findComment-439561 Share on other sites More sharing options...
naveenbj Posted January 15, 2008 Author Share Posted January 15, 2008 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:) Quote Link to comment https://forums.phpfreaks.com/topic/86081-mysql-codes-is-not-working-on-local-server/#findComment-439567 Share on other sites More sharing options...
vbnullchar Posted January 15, 2008 Share Posted January 15, 2008 can you post the code you used Quote Link to comment https://forums.phpfreaks.com/topic/86081-mysql-codes-is-not-working-on-local-server/#findComment-439686 Share on other sites More sharing options...
naveenbj Posted January 15, 2008 Author Share Posted January 15, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/86081-mysql-codes-is-not-working-on-local-server/#findComment-439689 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.