weeder Posted November 14, 2008 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
Lithium Posted November 14, 2008 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
weeder Posted November 14, 2008 Author 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
weeder Posted November 14, 2008 Author Posted November 14, 2008 Re: A little jelp with sql Solved Thank you very much for your help Quote
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.