Hey all, I’m after a piece of code that changes the $num value based on a page title (or file name if page title cannot be done)
This is the piece of code that I have at present. I need to change the number value based on what page title or filename
[php]<?php
$num = 1;
?>[/php]
I have to admit, apart from guessing that a $get_ function would be called, or an $if option e.g.
[php]function page title()
$if page title =“value” then $num =3; [/php]
Thanks in advance