aximbigfan Posted December 8, 2008 Share Posted December 8, 2008 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 More sharing options...
corbin Posted December 8, 2008 Share Posted December 8, 2008 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. Link to comment https://forums.phpfreaks.com/topic/136008-solved-best-way-to-get-a-single-record/#findComment-709170 Share on other sites More sharing options...
fenway Posted December 8, 2008 Share Posted December 8, 2008 The only alternative I can think of is mysql_result, which would be about the same. That would be the better way, with mysql_result($asdf, 0, 0). Link to comment https://forums.phpfreaks.com/topic/136008-solved-best-way-to-get-a-single-record/#findComment-709512 Share on other sites More sharing options...
aximbigfan Posted December 9, 2008 Author Share Posted December 9, 2008 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 Link to comment https://forums.phpfreaks.com/topic/136008-solved-best-way-to-get-a-single-record/#findComment-710083 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.