Jump to content

why this error


12Strings

Recommended Posts

Hi guys . I need to know where this error message is coming from.
I've read everything from the promising to maniacal, from the
learned to just plain snotty. I'm not a know it all, I'm just
looking for help,
 

Warning: mysql_connect():Access denied for user 'root'@'localhost'
(using password: YES) in C:\xampp\htdocs\home\

 


Following is my code:

<?php
// error_reporting(0);
error_reporting(E_ALL ^ E_NOTICE);
mysql_connect('localhost','root',' ');
mysql_select_db('passdb') or die("Unable to select database");
$query="SELECT * FROM 'passtbl' Where point='$point'";
$result=mysql_query($query);
$num=mysql_numrows($result);
echo date("m/d/Y") . "<br />";
echo "<font size=+2><b> Email info<br /><br />";
echo "<table cellspacing=1 cellpadding=0 border=0>
        <tr>
    <TH>point</TH>
    <TH>target</TH>    
    <TH>username</TH>
    <TH>password</TH>
    <TH>emailused</TH>
    <TH>lastused</TH>
    <TH>purpose</TH>
    <TH>saved</TH>    
    <tr>
    <TH colspan=8>=======================================================================</TH>
    </tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['point'] . "</td>";
echo "<td>" . $row['target'] . "</td>";
echo "<td>" . $row['username'] . "</td>";
echo "<td>" . $row['password'] . "</td>";
echo "<td>" . $row['emailused'] . "</td>";
echo "<td>" . $row['lastused'] . "</td>";
echo "<td>" . $row['purpose'] . "</td>";
echo "<td>" . $row['saved'] . "</td>";
echo "</tr>";
echo "</table>";
mysql_close();
}
?>
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.