weeder Posted November 14, 2008 Share Posted November 14, 2008 I am trying to put a country flag in mainmenu and can't get this sql query right can anyone help please $ct= mysql_fetch_object(mysql_query("SELECT coun_flag FROM countries WHERE coun_id = '{$ct['country']}'")); echo "<center>[img={$ir[] Quote Link to comment Share on other sites More sharing options...
Lithium Posted November 14, 2008 Share Posted November 14, 2008 Re: A little jelp with sql I am trying to put a country flag in mainmenu and can't get this sql query right can anyone help please $ct= mysql_fetch_object(mysql_query("SELECT coun_flag FROM countries WHERE coun_id = '{$ct['country']}'")); echo "<center>[img={$ir[] a little more code would be better for someone to help... but at first glance... it seems you got $vars all messed up so it doesn't show... Quote Link to comment Share on other sites More sharing options...
weeder Posted November 14, 2008 Author Share Posted November 14, 2008 Re: A little jelp with sql There is no more code what I am doing is reading a image url which is in database countries table>coun_flag. depending on which country the user is in which is stored in user table >country Quote Link to comment Share on other sites More sharing options...
weeder Posted November 14, 2008 Author Share Posted November 14, 2008 Re: A little jelp with sql Solved Thank you very much for your help Quote Link to comment 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.