Code: Select all
<?php
while ($status == "bad")
{
$count++;
$data_seek = mysql_data_seek($count,$db_query);
$db_values = mysql_fetch_array($db_query);
if ($total_imp == 0)
{
$status = "good";
}
else
{
if ($db_valuesї"start"] != "0000-00-00" and $db_valuesї"end"] != "0000-00-00")
{
if (date("Y-n-j",strtotime($db_valuesї"start"])) <= $date)
{
if (($db_valuesї"imp"]/$total_imp) <= ($db_valuesї"weight"]/$total_weight))
{
$status = "good";
$id = $db_valuesї"id"];
}
}
}
else
{
if ($db_valuesї"imp"]/$total_imp <= $db_valuesї"weight"]/$total_weight)
{
$status = "good";
}
}
}
}
?>