Jump to content

budeboy

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by budeboy

  1. You could do it using sessions but if the variable is set in index.php they would have to have been on index.php for it to work on the other pages. I think the best way would be to set it in an external file then calling that file on the pages you want the variable to be used on. e.g. the code in the file would be [code] $title = "This is the title"; [/code] and the code you would use to call it would be (assuming the file was called title.inc) [code] include("title.inc"); [/code] hope that helps
  2. im trying to write a script that echos information in variables using a loop I know the code below is wrong but its the best way i could describe the sort o thing im trying to do [code] $i = 1; while($i < 20){ echo "$week$i"; } [/code] is the sort of thing im trying to do is there a way to do a loop that echos variable $week1 then $week2 and so on intill $i = 20.
×
×
  • 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.