Continuous Queries vs Storing and Recalling Data
<p>I would like to know which of the following methods would be best to use on a website, and a brief explanation on why. Please assume that <code>$user</code> is <code>$user = new User()</code> throughout this question </p>

<ol>
<li><p>Whether to store my data returned from a database query, as an array (<code>$user_data</code>) and then convert into an object for further referencing. (eg to get the user's name <code>$user-&gt;data-&gt;name</code>). Please note I also intend to add further to the user class for data such as permissions.</p></li>
<li><p>To keep querying the database each time I want a bit of new bit of data, so use <code>$user-&gt;data("name")</code>.</p></li>
</ol>

<p>I am new to object orientated php and couldn't find any tips on this and may also have made some mistakes in my query ideas.</p>
