I have a mysql query that will return an array such as...
Delivered Not Needed
No Yes
Yes No
I need to display a tick image if....
all items are delivered (no need for php to also check if not needed here)
all items are delivered that are NOT also marked as not needed
I need to display a cross if....
any item in the array is marked as not delivered and Not needed is marked as No (ie the item is needed but not delievered).
The above example would need to display a tick as the first item was not needed by the customer.
Hope that makes sense.
I tried this but didnt get very far...
$query66 = mysql_query("SELECT Delivered, Notneeded FROM sales_items WHERE Tender = $sr_tender");
$row66 = mysql_fetch_array($query66);
if (!in_array("no", $row66)) { echo "<img src='tick.gif' width='15' height='15' />"; }
I also treid if else statements but it only checked the last entry in array.
Any better ideas?😃