hide link

Started on the old forum in December 2011 · view the original in the archive · old links redirect here

4 replies · 390 views · started 14 years ago · 1 min read

3 participants
brand Senior · 391 posts #1

hi there friends sorry to keep asking for help but i am still learning and i have tryed every way to do this

$sex=mysql_fetch_array(mysql_query("SELECT sex FROM users WHERE sex >'F'"));
if($sex[0]>F){
  <a href=\"../avatars2/avatars.php?sid=$sid\">Female Avatars</a> <br/>Random Female Avatars Coming soon Here<br/>
}

i am after making it so only female members can see the links

i am very great full for all the help every one is giving me

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

GumSlone Administrator Principal · 1,690 posts #2
$sex=mysql_fetch_array(mysql_query("SELECT sex FROM users WHERE user_id ='".intval($user_id)."'"));
if($sex[0]=='F'){  echo '<a href="http://coding-talk.com/f23/avatars2/avatars.php?sid=$sid">Female Avatars</a> <br/>Random Female Avatars Coming soon Here<br/>';}

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

brand Senior · 391 posts #3

GumSlone wrote:

$sex=mysql_fetch_array(mysql_query("SELECT sex FROM users WHERE user_id ='".intval($user_id)."'"));if($sex[0]=='F'){  echo '<a href=\"../avatars2/avatars.php?sid=$sid\">Female Avatars</a> <br/>Random Female Avatars Coming soon Here<br/>';}

thanks gunslone i tryed what ya said and i get this error

Parse error: syntax error, unexpected '}' in /home/**/public_html/mixavatars/main.php on line 29

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

metulj Super moderator Principal · 1,726 posts #4

brand wrote: thanks gunslone i tryed what ya said and i get this error

Parse error: syntax error, unexpected '}' in /home/**/public_html/mixavatars/main.php on line 29

dont you think this error is self explanatory ? simple delete sign } in line 29 or even in line 28

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

brand Senior · 391 posts #5

metulj wrote: dont you think this error is self explanatory ? simple delete sign } in line 29 or even in line 28

all sorted now i had to change bits in it to work

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close