Welcome Guest, Not a member yet? Register   Sign In
foreach statement is giving syntax error
#3

(08-01-2016, 09:58 PM)waptik Wrote: try this:

<?php foreach ($records as $rows):?>
     <?php echo $rows->firstname; ?>
<?php endforeach; ?>

waptik  It did work well. I learnrd, that i did a syntax error by putting ; instead of : at the end of the foreach statement. Appreciate it and God Bless.
Reply


Messages In This Thread
RE: foreach statement is giving syntax error - by dilipan - 08-01-2016, 11:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB