estoy tratando de contar cuantos datos tiene una tabla de una bd en MySql
este es el codigo que uso:
Código PHP:
mysql_connect("localhost","usuario","pass")or die(mysql_error());
$result=mysql_db_query("base_1", "Select Id, Count(*) From direcciones3") or die(mysql_error());
$total=mysql_result($result) or die(mysql_error());
echo $total;
Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause
que hago mal ...

