|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||||
|
Okay there is a Mysql DATABASE
with 2 Tables 1 is GamesPlayed another is Members In games played there are the following fields: id gamename gamepic statnames outsidelink In Members there the following fields: ID Username Password maingame The main game field is an ID from the GamesPlayed Table.. So.. there are 5 members lets say and there are 3 games.. and its filled out like this ID: 1 Username: Joe Password: test maingame: 1 ID: 2 Username: Bob Password: test maingame: 1 ID: 3 Username: kiddney Password: test maingame: 3 ID: 4 Username: sally Password: test maingame: 1 ID: 5 Username: sid Password: test maingame: 2 now i am trying to write a function that that pulls out the ID number from the Members page of each members and counts them. So it should return Main Game: 1 Members = 3 Main Game: 2 Members = 1 Main Game: 3 Members = 1 |
|
|||||
|
I guess you can try something like this:
PHP Code:
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||||
|
i am trying to count each how many members have it selected.. not how many in gamesplayed.. well look at my function.. it shows what i am trying to do.. but it comes out blank.
Here let me show you visually since you guys dont understand. Clan Hectic Defiance See where it Says GAME. on all the member I am making a statistic where it counts all the people with each game.. so look at my function.. i know its almost right but it keeps coming up blank.. Last edited by Whitey; 04-23-2008 at 02:11 PM. |
|
|||||
|
This:
Code:
"SELECT `id` FROM `Members` WHERE `maingame` = '1'";
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inline function | Chinmoy | C Tutorials | 1 | 04-07-2008 04:13 PM |
| using Template function | Chinmoy | C Tutorials | 4 | 04-03-2008 05:16 AM |
| function pointer | Chinmoy | C Tutorials | 0 | 03-19-2008 01:52 AM |
| SecurityAudit | vinay | Visual Basic Programming | 27 | 01-07-2008 01:14 PM |