Not sure where to loop this script ...
BUT when row[DELUX] is empty for first 9 rows
the script works and output's the <br> correctly
In row 10, DELUX has a value greater than 0
the if statement works. The query stops, and not continue the set limit
$query = "select FROM loris LIMIT 0 , 22";
$result = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
$DELtotal = $row[DELUX];
if ($DELtotal <= 0)
{
echo "<br>";
} else {
$query = "select FROM loris LIMIT 0 , 1";
$result = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
$DELUXtotal = $row[DELUX] - $row[PRICE];
echo "$DELUXtotal<br>\n";
} } }
any ideas would really helpful.