Ok, what i want to do is make it if the users gender is Female, it will echo the Female.png and if its Male, echo the Male.png is this possible?
The table gender dont have any values like M, 1 just (Male, Female, Hidden)
Can this be done easily?
Ok, here's what I understand about your post:
You are collecting user data somehow, registration form, login, etc...and you have access to their gender. The gender is stored in the Gender table.
If the above is accurate then you would need to query for gender, and then load an appropriate img based on gender. Here is how I would do this:
[PHP]<?php
//query for the gender, your sql will vary based on table fields
$sql="SELECT gender_tbl.gender FROM gender_tbl WHERE gender_tbl.userid = $userid";
$result=@mysql_query($sql);
list($gender)=@mysql_fetch_row($result);
//create a variable to load proper variable
$loadImg=($gender=="male")?"male.png":"female.png" ;
?>[/PHP]
Then when you need to load the the img
[PHP]<img src='./path/to/img/<?=$loadImg; ?>' alt='Your alt text' />[/PHP]