Re: [PHP] Connecting to a DB using PHP and mysql...

2002-04-02 Thread Erik Price


On Tuesday, April 2, 2002, at 10:40  AM, Rick Emery wrote:

> have permissions been granted to contacts in mysql using that 
> combination of
> username and password?

And from that host?


Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Connecting to a DB using PHP and mysql...

2002-04-02 Thread Rick Emery

have permissions been granted to contacts in mysql using that combination of
username and password?

-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Connecting to a DB using PHP and mysql...


Using the script below, I was able to connect to a database named "contacts"
for
output.

*However*, when I insert a [username] and [password] in place of the ""  "",
I get:

"Couldn't connect to the database" - eventhough I am able to connect to
mysql.

How do I go about replacing the "" and "" to insert a password and username
so that it can be connected to a database?

Any advice will be greatly appreciated.
TR
.



";
echo"First NameLast NameemailState";

  while($row=mysql_fetch_array($mysql_result))
   {
$fname=$row["fname"];
$lname=$row["lname"];
$email=$row["email"];
$state=$row["state"];
$ID=$row["ID"];
echo " $fname$lname$email$state";
   }
 }
mysql_close($connection);
?>










-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Connecting to a DB using PHP and mysql...

2002-04-02 Thread Anthony Ritter

Using the script below, I was able to connect to a database named "contacts"
for
output.

*However*, when I insert a [username] and [password] in place of the ""  "",
I get:

"Couldn't connect to the database" - eventhough I am able to connect to
mysql.

How do I go about replacing the "" and "" to insert a password and username
so that it can be connected to a database?

Any advice will be greatly appreciated.
TR
.



";
echo"First NameLast NameemailState";

  while($row=mysql_fetch_array($mysql_result))
   {
$fname=$row["fname"];
$lname=$row["lname"];
$email=$row["email"];
$state=$row["state"];
$ID=$row["ID"];
echo " $fname$lname$email$state";
   }
 }
mysql_close($connection);
?>










-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php