question about optimizing access to mysql
Posted: Sat May 09, 2009 9:17 am
Hello,
I have an account page and I would like user informations (stored in mysql) if the user is logged in.
I'm using php to retrieve the data and displaying them into the account page.
Php is embedded in the account page, so everytime the user visit to the account page the data are retrieved from the database.
Is this correct ? Is it reasonable ? Or should I optimize the code in order to retrieve the datas only once from the database ?
thanks
I have an account page and I would like user informations (stored in mysql) if the user is logged in.
I'm using php to retrieve the data and displaying them into the account page.
Php is embedded in the account page, so everytime the user visit to the account page the data are retrieved from the database.
Is this correct ? Is it reasonable ? Or should I optimize the code in order to retrieve the datas only once from the database ?
thanks