Jump to content

[SOLVED] Tips Help


supanoob

Recommended Posts

ok, so i want to have some tips on the side of my page that will need to change with each page, but i dont want to have to edit all the pages tips if they change slightly so im using 1 document and on include statement. now i need a way to find out what tip needs to be included on each page and when. if there anyway of doing this. without having a &tip=1 etc in the url since i want the tips to be disabled if the person wishes.

Link to comment
https://forums.phpfreaks.com/topic/37284-solved-tips-help/
Share on other sites

Well if you allready have the disable thing in place, just check that, then check the tips variable within the url if needed. eg;

 

<?php
  if (enabled_tips()) { // check to see if tips are enabled
    if (isset($_GET['tip'])) {
      $tipid = $_GET['tip'];
      // display tip # $tipid
    }
  }
?>

Link to comment
https://forums.phpfreaks.com/topic/37284-solved-tips-help/#findComment-178164
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.