Jump to content

[SOLVED] Best way to get a single record?


aximbigfan

Recommended Posts

Hi,

 

Not really a problem, persay, but I was wondering that the easiest, less intensive way of gettign a single record is. I have been using this,

$themearr = mysql_fetch_array(mysql_query("SELECT Value FROM Settings WHERE Setting='Theme'"));
echo $themearr['Value'];

 

But it is just kindof cumbersome.

 

any other ways

Link to comment
https://forums.phpfreaks.com/topic/136008-solved-best-way-to-get-a-single-record/
Share on other sites

The only alternative I can think of is mysql_result, which would be about the same.

 

 

How many times do you run small little queries like that?  They could start to add up quickly.

 

LOTS! Thanks for the advice! Glad I posted here before continuing on...

 

Chris

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.