Jump to content

all digits to be as pairs?


RON_ron

Recommended Posts

How do I get the number as pairs? (i.e. 05, 20, 01, 70)

 

$query = "SELECT statez, COUNT(statez)FROM distributors GROUP BY statez";

 

$result = mysql_query($query) or die(mysql_error());

 

while($row = mysql_fetch_array($result)){

echo $row['COUNT(statez)'] ." Distributors in ". $row['statez'];

echo "<br />";

}

?>

Link to comment
https://forums.phpfreaks.com/topic/212654-all-digits-to-be-as-pairs/
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.