Hi,
Im trying to write a bit of php with the following code:
<?php
include 'http://www.domain.com/table.php?var1=10&var2=2&var3=#';
?>
this bit of code is on every page and what I would like it to do is change var3= to the id of the record that the page is showing so for eg if the current page is page.php?pageid=222 then var3= would be var3=222 etc.. for every page.
Ive tried using $_GET[pageid] to get the pageid, put it into a variable and stick it on the end but the include doesnt like this and just shows the variable name that I created.. Is there a way of me doing this? i didnt think of this before I created the site..
PLEAAASSEEE!!! im desperate...
Thanks,
Chris