Im having a problem with this.
I want to echo out the number of post from every city in N.C
Example:
Wilmington (24) <--*24 is the number of post.
Charlotte (35)
Raleigh (15)
include "connect.php";
$wil ='Wilmington';
$cnt = mysql_num_rows(mysql_query("SELECT add_city FROM dbAdd WHERE $add_city='$wil' "));
echo $cnt;
This is the database.
CREATE TABLE `dbAdd` (
`id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`add_user` TEXT NOT NULL ,
`add_city` VARCHAR( 100 ) NOT NULL
) ENGINE = MYISAM ;