Is this what you mean?
select p.PlayerFirstName, p.playerLastname, count(t.playerID)
from players p, tries t
where p.playerid = t.playerid
group by p.PlayerFirstName, p.playerLastname
edit - bug!! Squashed!
Hi,
Something like this maybe? Not tested but along the right idea i think..
$group = "";
while ($data = dbFetchAssoc($result))
{
if ($data['Item_Name'] != $group)
{
Echo header detail here
$group = $data['Item_name'];
}
Echo mutilple details here...
}
Hi,
is the string size and position constant?
If so I would do something like:
$string = "Call Out Fee for 10:00 on 20/8/2007";
array[1] = substr($string, 17, 5);
array[2] = substr($string, 26, 9);
As i say this will only work if the string is consistant in length and there is probably a better way
Cheers
Dave
Hi all,
Im struggling with something probably really easy!! but just cant work it out!
I have an array that is populated like so
1, 1, 2007-08-16, 1, 2, 1
2, 1, 2007-08-16, 2, 2, 1
3, 1, 2007-08-16, 5, 6, 1
4, 2, 2007-08-16, 1, 3, 1
5, 2, 2007-08-16, 1, 5, 6
im trying cycle through this array and use the 2nd value as a group or header like below
1:
1, 2, 1
2, 2, 1
5, 6, 1
2:
1, 3, 1
1, 5, 6
I cant get close - any ideas?
Cheers
Dave
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.