brad12345 Posted April 8, 2008 Share Posted April 8, 2008 just want to know that How to check if a foreach has been run once. while ($row = mysql_fetch_row($resultPatient)) { echo("<tr>"); foreach($row as $value => $key) echo("<td width=100>$value</td>"); echo("</tr>"); } echo("</table>"); thank you for any help Link to comment https://forums.phpfreaks.com/topic/100085-how-to-check-if-a-foreach-has-been-run-once/ Share on other sites More sharing options...
Northern Flame Posted April 8, 2008 Share Posted April 8, 2008 you only want to run the foreach() function once? or run the stuff inside the foreach() once? Link to comment https://forums.phpfreaks.com/topic/100085-how-to-check-if-a-foreach-has-been-run-once/#findComment-511779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.