Sql help for soccer stats

3 posts by 1 authors in: Forums > CMS Builder
Last Post: August 27, 2022   (RSS)

By mbareara - August 27, 2022

If it wasn't a multivalue field i could use this code:

<?php $matchesPlayed = mysql_count("matches", "players_matches = " . intval($playersRecord['num']) ) ;?><?php echo $matchesPlayed;?>

By mbareara - August 27, 2022

I've solved it searching on this forum

<?php $matchesPlayed = mysql_count("matches", "players LIKE '%\t".$playersRecord['num']."\t%'") ;?><?php echo $matches_played;?>