php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41791 Unable to connect MySQL6 with PHP5
Submitted: 2007-06-24 18:14 UTC Modified: 2007-06-27 08:16 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: malathi dot velayudhan at gmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2.3 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: malathi dot velayudhan at gmail dot com
New email:
PHP Version: OS:

 

 [2007-06-24 18:14 UTC] malathi dot velayudhan at gmail dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-25 17:46 UTC] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2007-06-26 15:59 UTC] malathi dot velayudhan at gmail dot com
PHP & MySQL were doing good independently, but I was unable to run the php codes which connects with MySQL. Got a blank page.
I would like to know whether there will be any error in configuration.
I have provided the extension_dir path & uncommented the mysql.dll & mysqli.dll extensions in the php.ini file & moved its copy to Windows folder. I also copied the libmysql.dll & php5ts.dll to the system32 folder.
 [2007-06-27 08:16 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC