At the moment, if i want to update my database, im using an external page with the sql query, say its called update.php, and im including it in an invisible css box with something like this /index.php?site=homepage&hiddenbox=update.
That seems to be working fine, however I have a lot of things which constantly get updated in my database so i have lots of pages to update various things.
Is there a way to update from within the index.php page, maybe with an if statement if the update is dependant on say a number being less than 10?
Any opinions on the best way to go about updating database would be greatly appreciated
thanks.