hide link

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    hide link

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

    Code:
    $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



    i only work on wapdesire v_2 coding only

    #2
    PHP Code:
    $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

    Comment


      #3
      Originally posted by GumSlone View Post
      PHP Code:
      $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

      Code:
      Parse error: syntax error, unexpected '}' in /home/**/public_html/mixavatars/main.php on line 29
      HELP THEM WHO HELPS YOU



      i only work on wapdesire v_2 coding only

      Comment


        #4
        Originally posted by brand View Post
        thanks gunslone i tryed what ya said and i get this error
        Code:
        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ノ刀ノイリ!

        Comment


          #5
          Originally posted by metulj View Post
          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
          Last edited by brand; 03.12.11, 19:07.
          HELP THEM WHO HELPS YOU



          i only work on wapdesire v_2 coding only

          Comment

          Working...
          X