thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

Video 56 - 57 Syntax Error #86

Closed BloodWolf89 closed 9 years ago

BloodWolf89 commented 9 years ago

When I try to run users page I get "Parse error: syntax error, unexpected end of file in C:\wamp\www\STREAMER\admin\views\users.php on line 96"

I dont have a like 96..

Here is my file: http://pastebin.com/JkEJjmc7

el3302 commented 9 years ago

In your code on lines 59 and 60 the select options you have not used closing } on these lines.

Your code

<option value="0" <?php  if(isset($_GET['id'])){ selected('0', $opened['user'], 'selected'); ?>>Inactive</option>
<option value="1" <?php  if(isset($_GET['id'])){ selected('1', $opened['user'], 'selected'); ?>>Active</option>

Should be (Note the trailing })

<option value="0" <?php  if(isset($_GET['id'])){ selected('0', $opened['user'], 'selected'); }?>>Inactive</option>
<option value="1" <?php  if(isset($_GET['id'])){ selected('1', $opened['user'], 'selected'); }?>>Active</option>

Hope this helps

BloodWolf89 commented 9 years ago

Awesome! hahaha Thanks again el3302! I might be back to get help again soon... I have been stopping by to see if anyone else has posted issues to try and help.

I hope I dont bug you too much :P

el3302 commented 9 years ago

anytime

From: BloodWolf89 [mailto:notifications@github.com] Sent: 30 December 2014 21:19 To: thedigicraft/Atom.CMS Cc: Iain Mair Subject: Re: [Atom.CMS] Video 56 - 57 Syntax Error (#86)

Awesome! hahaha Thanks again el3302! I might be back to get help again soon... I have been stopping by to see if anyone else has posted issues to try and help.

I hope I dont bug you too much :P

— Reply to this email directly or view it on GitHub https://github.com/thedigicraft/Atom.CMS/issues/86#issuecomment-68399567 . https://github.com/notifications/beacon/AEwPMMU8jvRYtSErvLFZo496vyeFDZFMks5ncw5GgaJpZM4DNSUl.gif