php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15319 mysql_connect not accepting arguements
Submitted: 2002-01-31 21:34 UTC Modified: 2002-02-01 00:05 UTC
From: admin at trinexx dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.1.1 OS: Red Hat 7.2
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: admin at trinexx dot com
New email:
PHP Version: OS:

 

 [2002-01-31 21:34 UTC] admin at trinexx dot com
I'm sorry about my lack of experience with these things, and I'm not sure if this is a problem with PHP or with my server configuration.

Whenever I use the mysql_connect function and store the result in a variable, the arguements aren't parsed.


mysql_connect("localhost", "username", "password");

works perfectly fine.


The problem arises when I use

$link=mysql_connect("localhost", "username", "password");

and it says "Access denied for user apache@localhost (Using password: NO)". Yes, I recoded the script for the main page of my site, but there are many things that I shouldn't have to (i.e. it should work like that ^), like vBulletin.

Like I said, I'm new at this and I don't know if it's my configuration or a problem with PHP...but I hope it's the former, and any help would be appreciated.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-01 00:05 UTC] mfischer@php.net
Please ask support questions at php-general@lists.php.net
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC