Detailed Analysis
[insert_php]
$username = “user”;
$password = “password”;
$hostname = “tokra.sapphire.gi”;
$dbh = mysql_connect($hostname, $username, $password) or die(“Unable to connect to MySQL”);
$selected = mysql_select_db(“dbenvironment”,$dbh) or die(“Could not select first_test”);
$mysql = “SELECT * FROM tblBeach WHERE BeachID=”.$_GET[‘beachid’];
$result = mysql_query($mysql);
while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
echo $row{‘Beach’};
$ManColif =$row{‘ManColif_Value’};
$ManEcoli=$row{‘ManEcoli_Value’};
$ManFaecal=$row{‘ManFaecal_Value’};
$GuideColif=$row{‘GuideColif_Value’};
$GuideEcoli=$row{‘GuideEcoli_Value’};
$GuideFaecal=$row{‘GuideFaecal_Value’};
}
$ManColif_Result=0;
$ManEcoli_Result=0;
$ManFaecal_Result=0;
$GuideColif_Result=0;
$GuideEcoli_Result=0;
$GuideFaecal_Result=0;
[/insert_php]
Date | TOTAL COLIFORMS/100ml |
E.COLI /100ml | FAECAL STREPTOCCUS /100ml |
“.date(“j M Y”,$row{‘resultdate’}).” | “.$row{‘Coliform’}.” | “.$row{‘Ecoli’}.” | “.$row{‘Faecal’}.” |
MANDATORY STANDARD | [insert_php]=$row{‘ManColif’}[/insert_php] | [insert_php]=$row{‘ManEcoli’}[/insert_php] | [insert_php]=$row{‘ManFaecal’}[/insert_php] |
GUIDE VALUES | [insert_php]=$row{‘GuideColif’}[/insert_php] | [insert_php]=$row{‘GuideEcoli’}[/insert_php] | [insert_php]=$row{‘GuideFaecal’}[/insert_php] |
Failed Mandatory | [insert_php]=$ManColif_Result[/insert_php] | [insert_php]=$ManEcoli_Result[/insert_php] | [insert_php]=$ManFaecal_Result[/insert_php] |
Failed Guide | [insert_php]=$GuideColif_Result+$ManColif_Result[/insert_php] | [insert_php]=$GuideEcoli_Result+$ManEcoli_Result[/insert_php] | [insert_php]=$GuideFaecal_Result+$ManFaecal_Result[/insert_php] |