The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Hardcoding in PHP versus SQL
Hi,
I have a list of about 10 categories that I need to display. Right now I have the categories in the database and I am using 1 SQL query to get them. I am thinking that I can hard-code the list of categories in PHP in order to avoid quering the database. The down side of this is that I need to update the list of categories in 2 places (in the database and in the PHP file) if I choose to add more categories in the future. The "bright side" of the "downside" is that the list of categories will be updated VERY rarely (possibly never). What do you think of this ? Should I hard-code in PHP ? Regards, Razvan M. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|