View Single Post
Old 02-17-2004, 01:01 AM  
galleryseek
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 8,234
PHP / MySQL Help!

ok just a few questions, unfortunately my coder is a fatass lazy piece of shit so i'm attempting this, if you can prove helpful i'll use you on the project.. its just a big move to remove the current programmer cause this is such a big ass project... anyhow...

This is a table that I'm currently working with.


What I want to do is print out, "You have performed X amount of Exercises"... the initial coding i assume would go like this:

$query = "SELECT abrv FROM bgusers WHERE uid=$uid";
$result = mysql_query($query);

then how do you take the $result and exclude the duplicates then find out how many individual exercises there are after duplicates have been removed? i assume there is some kind of duplicate removing function in php...

I assume this isn't too difficult for most coders out there...

thx ;)
galleryseek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote