Hi all,
I need help in the alert function. I'm using count in php in which if the item is less than or equal to 10,the alert function would pop up. However my code does not work.Below is my code.
Part of the php code:
echo "<td>".$row['COUNT(item)']."</td>";
Javascript code:
<script language="JavaScript" type="text/javascript">
if (count('item')<='10')
{
alert('There is less than 10 items.')
}
</script>
Could anyone help to rectify my mistakes above in which I need the alert function to pop up when the item is less than 10.
Thanks.