Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch($id){
- case 1: $link1 = " class='orange'"; break;
- // ETC
- }
- // Code
- echo "<a href=\"aPage.php\" $link1>";
- // More code
- /*
- Your CSS file would have something like this:
- .orange{
- background-color: orange;
- // etc
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment