I have the following script written to display players appearances by every 50, so their first game appears first, then their 50th, etc, see the image below..
public function get_player_milestones( stdClass $player ) { $query = $this->dbo->prepare( 'SELECT returnTable.* FROM ( SELECT @rownum := @rownum + 1 AS milestone_count, seasonstats.* FROM seasonstats WHERE id = ANY ( SELECT matchid FROM seasonteamstats AS playergames, (SELECT @rownum:=0) variableInit WHERE firstname = :firstname AND lastname = :lastname ) ORDER BY date ) AS returnTable WHERE returnTable.milestone_count = 1 OR ( returnTable.milestone_count ) MOD 50 = 0; ');
What I want to do now is display the games the player scored in. I have almost got it by adding
[CODE] AND goals+penalties > 0 [/CODE]
under lastname = :lastname. Problem is, its not taking into account when a player has scored 2, or more in a game. So basically, if a players scored 51 goals, the 50 is missing if they've scored more than 2 in one game. Hopefully someone understood all that :D
I do not use the AdGuard extension. I have uninstalled both the uBlock and Stylus extensions, as well as the Tampermonkey extension, since I began using AdGuard for Windows 7 months ago.
It does not use any extension APIs, it modifies traffic system wide using a local proxy. AdGuard performs all the functions of uBlock, as well as additional features such as HTTPS filtering, cosmetic (user scripts and user styles), as well as DNS. It works with any browser and application. I don't understand why you consider the desktop program to be useless...
Should Google be forced to stop promoting Chrome over other browsers?
Google pushes Chrome to anyone visiting its website using browsers other than Chrome.
Question
marklcfc
I have the following script written to display players appearances by every 50, so their first game appears first, then their 50th, etc, see the image below..
What I want to do now is display the games the player scored in. I have almost got it by adding
AND goals+penalties > 0
[/CODE]
under lastname = :lastname. Problem is, its not taking into account when a player has scored 2, or more in a game. So basically, if a players scored 51 goals, the 50 is missing if they've scored more than 2 in one game. Hopefully someone understood all that :D
Link to comment
https://www.neowin.net/forum/topic/1069362-help-with-php/Share on other sites
1 answer to this question
Recommended Posts