Hello,
need some help.
I have this code to see if there is any 0 number in field.
<?PHP
$boja1="divclass1";
$boja2="divclass2";
$provjera="SELECT kolicina FROM stanje_lijekova WHERE kolicina= 0";
if (!$q=mysql_query($provjera))
{
echo "Error" . mysql_query();
die();
}
if (mysql_num_rows($q)>0)
{
$boja1;
}
else
{
$boja2;
}
?>
How can I make this code to echo one of two variables with div class. If row have number 0 in field than my class need divclass1 if any other number than is divclass2.
<div class='here i need that echo'>some code</div>
And my dba:
This is classic mouse hover css: