Page 1 of 1

Parse Error: Profile [part 02]

Posted: Sun Aug 19, 2012 2:19 am
by Djmann1013
I keep getting this error:
Parse error: syntax error, unexpected T_AS

Here is my code:
<?php
	
	foreach ((fetch_users() as $user){
         ?>
         <p>
           <a href=""><?php echo $user['username']; ?></a>

         </p>
         <?php
         }
	
	?>
I don't see why this is having a problem.

Re: Parse Error: Profile [part 02]

Posted: Sun Aug 19, 2012 3:44 am
by Temor
    foreach ((fetch_users() as $user){
You have two opening brackets where you only should have one.