PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am new to php+mySQL. worked mostly with asp before. i have a query that the results will have to show basically on every page of the site i am building. is there a way to do it globaly (like global.asa)? what would be the best approach?
something i tend to do is have a config.php file, where all of my global vairables (like user names for mysql and such) are kept. If you do that, you could have a variable defined as like
so would i just create a session variable to check if the query has an data stored in its variables and if yes post it and if not i would run the query?