Crew-Portal Posted August 21, 2007 Share Posted August 21, 2007 Hi I am building a script bla bla bla ... Anyways I need a thingy to show if the connection to the MySQL database is there! I cant get my members to be able to log on and i think the problem is for some reason the database wont connect... Can someone just post a quick script to display if the connection exists Quote Link to comment https://forums.phpfreaks.com/topic/66049-solved-show-if-connected/ Share on other sites More sharing options...
BlueSkyIS Posted August 21, 2007 Share Posted August 21, 2007 mysql_connect($server,$user,$password) or die("not connected."); Quote Link to comment https://forums.phpfreaks.com/topic/66049-solved-show-if-connected/#findComment-330320 Share on other sites More sharing options...
Crew-Portal Posted August 21, 2007 Author Share Posted August 21, 2007 Thank you! A simple script for a simple mind! (PS: That wasnt to you that was to me for asking someone to write a one line script) Thanks BlueSkyIS! TOPIC SOLVED!!! Quote Link to comment https://forums.phpfreaks.com/topic/66049-solved-show-if-connected/#findComment-330328 Share on other sites More sharing options...
akitchin Posted August 21, 2007 Share Posted August 21, 2007 hit the "topic solved" button then, please. Quote Link to comment https://forums.phpfreaks.com/topic/66049-solved-show-if-connected/#findComment-330329 Share on other sites More sharing options...
Crew-Portal Posted August 21, 2007 Author Share Posted August 21, 2007 You must have gotton to the Page right when I posted! lol... Anyways ya I always hit the button! Quote Link to comment https://forums.phpfreaks.com/topic/66049-solved-show-if-connected/#findComment-330363 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.