GrahamWong Posted January 9, 2008 Share Posted January 9, 2008 Hi. I am running Windows 2003 server with latest PHP. Here is my php file contents: start <?php echo "hello" $con = mysql_connect(); ?> It should show "start hello" when executed, but instead it shows a blank page when I add the line $con = mysql_connect(); Anyone know what is happening? Is there a log somewhere? Quote Link to comment https://forums.phpfreaks.com/topic/85140-my-page-renders-blank-when-calling-mysql_connect/ Share on other sites More sharing options...
rajivgonsalves Posted January 9, 2008 Share Posted January 9, 2008 Your mysql library is not install turn on your error messages in php.ini setting to be changed display_errors = On error_reporting = E_ALL Quote Link to comment https://forums.phpfreaks.com/topic/85140-my-page-renders-blank-when-calling-mysql_connect/#findComment-434358 Share on other sites More sharing options...
Ken2k7 Posted January 9, 2008 Share Posted January 9, 2008 Well mysql_connect() takes 3 arguments. $con = mysql_connect($server, $username, $password) or die(mysql_error()); Fill in the variables. Quote Link to comment https://forums.phpfreaks.com/topic/85140-my-page-renders-blank-when-calling-mysql_connect/#findComment-434363 Share on other sites More sharing options...
wildteen88 Posted January 9, 2008 Share Posted January 9, 2008 As you are on Windows please have a read of this FAQ. rajivgonsalves is right you do not have the mysql extension enabled, The linked FAQ will help you. Quote Link to comment https://forums.phpfreaks.com/topic/85140-my-page-renders-blank-when-calling-mysql_connect/#findComment-434822 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.