Hello:
I have a database table "categories". The content of this table do not
update regularly, So I have imported the content of this table in a
text file "categories.txt". Now I have several mysql queries like
$cat_query=mysql_query("Select * from sbbleads_categories where sb_id=" . $cid );
if ($cat=mysql_fetch_array($cat_query))
{
$catname=$cat["sb_cat_name"];
$category=$cat["sb_id"];
}
I want instead of quering mysql database every time which can use much
CPU resources Can I query the text file "categories.txt"? Please let me know how can I do this.