Parse Error: Profile [part 02]

Post here is you are having problems with any of the tutorials.
Post Reply
Djmann1013
Posts: 11
Joined: Sun Aug 19, 2012 12:19 am
Contact:

Parse Error: Profile [part 02]

Post 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.
PHP addict.
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: Parse Error: Profile [part 02]

Post by Temor »

    foreach ((fetch_users() as $user){
You have two opening brackets where you only should have one.
Post Reply