hey
im not going to give loads of details its just a simple question i need help with.

Basicly i'v got a site which lets people cast votes for individual people once logged in, however the can only view the votes already cast when logged in aswell..

This is the code:

if ($_SESSION['loggedin'] == true) {
$login_test = true;

$getvotes = "SELECT count(vote) as total, vote FROM `votes` group by vote order by vote";
$sendvotes = mysql_query($getvotes) or die (mysql_error());
$votes = mysql_fetch_array($sendvotes, MYSQL_ASSOC) or die (mysql_error());

}

Could anyone tell me how i can store each individual vote amount in a variable.
say 11 people had voted for member number 2
$two = 11;

Any ideas
Help would be greatly appreciated!
Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.