In the database there is a table with fields and textual information. In the table there is a field message1 which contains the text 'lateness more than 15min' and 'lateness less than 15min'. I can’t understand how to build a condition in which,, it will be so if in column message1 there is a phrase “lateness is more than 15min” then write 0. If there is a “delay less than 15min” then write 1. $ row contains an array of data from the database
foreach($row as $k=>$val) { foreach ($val as $value=>$last) { echo '<pre>'; print_r ($row); echo '</pre>'; } }
rowand what you want to get at the output. - teran