By using php i would like to be able to edit 3 words just by editing the first word So lets say my first word is cheese and elsewhere on the page cheese is in two other places... When i edit this word to maybe bacon.. it also changes the 2 other words from cheese to bacon on my page automaticaly saving me decades Does anyone know how to do this ?
If your content is in $data and echoing the whole page is something like echo $data then you can easily replace cheese with bacon with str_replace: $data = str_replace($data, 'cheese', 'bacon'); //check syntax on php.net though... PHP:
Tops's way is probably a bit easier, using ahref you will have to go and change 'cheese' first of all to '$data'. So if your willing to do that, why not just change them all to bacon?
because i want to change them on 300 pages to differant things not all to bacon, i want to change some from cheese to ivory and some from cheese to pirates.
Randomize it then. Put bacon, ivory and pirates in an array and then randomly pick one to replace cheese with.
I dont want to do it randomly, sorry i cant be making myself very clear. All i want is something like this <?php $term1 = "Cheese"; ?> and then a script to be able to past that into my title and else where on the page so i can edit it in design mode and not to have to go into code.