Monkuar Posted July 13, 2009 Share Posted July 13, 2009 i use this query $result4 = $db->query('SELECT imgaward FROM users WHERE username="'.($cur_topic['poster']).'" ') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error()); and i need to change "'.($cur_topic['poster']).'" or w/e to something that switches on a if statement possible? This way i dont have to have 3 query's runned per page like $result4 = $db->query('SELECT imgaward FROM users WHERE username="'.($cur_topic['poster']).'" ') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error()); $result4 = $db->query('SELECT imgaward FROM users WHERE username="'.$cur_topic['last_poster'].'" ') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error()); and so on lol so i can save some bandwidth Quote Link to comment https://forums.phpfreaks.com/topic/165764-php-changing-values/ Share on other sites More sharing options...
Monkuar Posted July 13, 2009 Author Share Posted July 13, 2009 ??? Quote Link to comment https://forums.phpfreaks.com/topic/165764-php-changing-values/#findComment-874773 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.