How do I make a select statement that counts the total number of rows containing a specific word, lets say the word "sfp".
This is my code atm:
$totalfinished_sql = "SELECT auction FROM winners WHERE auction = 'sfp'";
$totalfinished_qry = mysql_query($totalfinished_sql) or die(mysql_error() . "<br>" . $totalfinished_sql);
$totalfinished = mysql_num_rows($totalfinished_qry);
The table looks like this:
ID----auction
1-----sfp
2-----ace
3-----meg
4-----sfp
5-----box