i have a sql database and i want to add 100% customisable phrases to my product.
but now n then there needs to be a variable
e.g. atm i have:
print "Welcome To $sitename's Support Helpdesk";
Welcome To FLCup's Support Helpdesk
now, to make that customisable i would need
print "$phrase[headertext]"; // of corse i'll have a sql query i aint that dumb.
so to the sql database i go and insert "$sitename's Support Helpdesk" into a field on the phrases database.
i refeshed my site and now it says
$sitename's Support Helpdesk // obviously not taking $sitename as a variable but as text
.: so what am i asking? :.
i am askin if there is a way to have things like $sitename in a field in the database and a php script notice that and print it as a variable and not text.
so that $phrase[headertext] prints: Welcome To FLCup's Support Helpdesk not Welcome To $sitename's Support Helpdesk
any help would be great,
p.s a 2nd example if needed:
print "Welcome to $sitename's support center, choose an option below";
prints: Welcome to SupportCenter's support center, choose an option below
how can i have $phrase[welcome] not say
Welcome to $sitename's support center, choose an option below