Hi all,
I've got a web page that already makes a MySQL connection to get data for display in the middle of the page. There are 25 rows of data that are extracted and displayed.
I want to be able to have a smaller section to one side of the page, display other information...hyperlinks (perhaps up to 10 max). I'm thinking about storing these links in another table under the respective user that's logged in (therefore making these links personalized, not site standard for everyone).
My concern is that by adding a whole new db query (I realize that I can utilize the same mysql_connection, since the tables would be in the same db) to a different table, this would be a slower solution than that of other ways...such as storing the personalized links in a cookie after doing a one time only query.
Would it be better to get the link data from the db each time the page is loaded (or other pages that would display them as well), or query the db 1x then read the cookie's each time the links need to be displayed. Or is there an even better solution? What about sessions or caching (I know next to nothing about both of those)?
Thanks in advance!