Jump to content
MakeWebGames

Recommended Posts

Posted

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[]

Posted

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...

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...