1001 studio wrote:
Hello,
[snip]
Now, I need to create a back office page where I can read all searches done ordered by number
[snip]
I've tried this
<?
$db = mysql_connect("$mysqlserver","$mysqluser","$mysqlpass");
mysql_select_db($dbname,$db);
$query = mysql_query("SELECT Count(string),string FROM report GROUP BY string;");
while($row=mysql_fetch_array($query)){
print ("<FONT face=\"$font_face\"><B>".$row["string"]."</B></FONT>\n");
}
?>
but it returns me string only without counting for string number....
Any ideas?
I'm still new to MySQL myself, but it looks to me like you're only telling it to print string. Have you tried adding .$row["Count"]. to your print statement?
A.J. Wilson