Ok I've been up all weekend and apparently my brain has imploded - I just can't conquer something that should be easy I think:
Using PHP. I have a variable:
$pageid = 9999;
and I have a template page full of hundreds of statements, like:
<?php $simplex->menu( 200029999, 200009999,1); ?>
(The 9999 is at the end of each number in every case)
In all of these statements, I need to replace the 9999 with the variable $pageid so that this number is no longer hardcoded (figuring to bulk replace using notepad++).
But for some reason I can't come up with a working syntax and my attempts to find an example here are failing too. Any hints appreciated!!
UPDATE for clarification:
In the end I want the statement to have $pageid coded into it, i.e.
<?php $simplex->menu( 20002'.$pageid.', 20000'.$pageid.',1); ?>
Obviously my above example is complete FUBAR but just trying to illustrate the end result I'm trying to achieve... then whatever value is assigned to $pageid will be applied to the statement itself.
