prcollin Posted May 17, 2008 Share Posted May 17, 2008 How do i just run a simple script to test if there is a connection to my db using php? Mysql is installed on my web domain so isnt php5 and apache Quote Link to comment Share on other sites More sharing options...
Barand Posted May 17, 2008 Share Posted May 17, 2008 <?php $conn = mysql_connect ('hostname', 'username', 'password'); if (!$conn) echo mysql_error(); else echo 'Connected OK'; Quote Link to comment 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.