Progress Masocha

Progress Masocha

4,347 Points

It keeps on saying i cant see a case for admin .Where am i getting it wrong

im stuck

switch.php

<?php//Available roles: admin, editor, author, subscriberif(!isset($role)){$role='subscriber';}//change to switch statementswitch($role){case'admin ':echo"As an admin,you can add,edit,or delete any post.";break;case'editor':echo"As an editor.you can add or edit any post.and delete your own posts.";break;case"author":echo"As an author.you can add.edit.or delete your own post.";break;default:echo"You do not have access to this page. Please contact your administrator.";}?>

Ben Payne

1,464 Points

Ben Payne

Ben Payne

1,464 Points

August 6, 2018 1:09pm

Hey Progress - It looks you have an extra space in the admin case. Remove that space and try again.