|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-25 17:46 UTC] tony2001@php.net
[2007-06-26 15:59 UTC] malathi dot velayudhan at gmail dot com
[2007-06-27 08:16 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 03:00:02 2025 UTC |
Description: ------------ Hello, I'am unable to connect the MySQL & PHP. I get a blank page on executing the code. Will there be any problem in php.ini configuration? Plz help me to fix it up. Reproduce code: --------------- <?php $connect = mysql_connect("localhost", "root", "mmm") or die ("Hey loser, check your server connection."); $create = mysql_query("CREATE DATABASE IF NOT EXISTS moviesite") or die(mysql_error()); if ($create) {echo "database created "; } ?> Expected result: ---------------- Should either display "database created" or any error statement. Actual result: -------------- I get a blank page.