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
https://forums.phpfreaks.com/topic/282465-why-this-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.