Queries and server usage.
Posted: Tue Mar 20, 2007 5:27 pm
Hmm, been a long time since I've been here. Anyhoo.
I was wondering, when is a query actually counted as being done? I'll just give my example.
Also, I'm wondering if you think having a query on every page the user goes to is bad. Because I want to have custom layouts for folks, and it'll find what layout they've selected, and select the correct .css file.
I was wondering, when is a query actually counted as being done? I'll just give my example.
Code: Select all
$example = mysql_query("SELECT example FROM example");
// or does it actually get done when called upon? Such as...
if ($example = $example)
{echo "Blah blah."};