I want to select some items from table, but the problem is shown that "Access denied for user 'root'@'localhost' (using password: NO)". The db system cannot select something from table. What can I do?
<html>
<body>
<?php
include ('opendb.php');
......
echo "Date: " . date("Y/m/d") . "<br>";
$result = mysql_query("SELECT count(semail) AS av FROM `table` ")or die(
mysql_error());
$row = mysql_fetch_assoc($result) or die("No rows returned by query");
echo "Daily Volume: ".$result;
...... ?>