I have a problem with this code:
The above code sees how many times Whincup has been selected in my 'game' table in the 'shirtone' variable and outputs the value. What I want it to do is look in several variables with the output displayed on the page with them all added together, how would that work?
ie:
shirttwo= 'Whincup'
shirtthree= 'Whincup'
Ta
Chris
PHP:
<?php
// login stuff
include("../*****.php");
include("../******.php");
$sql = "SELECT COUNT(*) FROM game WHERE shirtone = 'Whincup'";
$result = mysql_query($sql) or die(mysql_error());
echo mysql_result($result, 0);
?>
The above code sees how many times Whincup has been selected in my 'game' table in the 'shirtone' variable and outputs the value. What I want it to do is look in several variables with the output displayed on the page with them all added together, how would that work?
ie:
shirttwo= 'Whincup'
shirtthree= 'Whincup'
Ta
Chris