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 Link to comment https://forums.phpfreaks.com/topic/106068-simple-test-mysql-script-needed/ 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'; Link to comment https://forums.phpfreaks.com/topic/106068-simple-test-mysql-script-needed/#findComment-543713 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.