description selecting probz

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

    description selecting probz

    PHP Code:
    $item mysql_fetch_array(mysql_query("SELECT uid, id, imageurl, sex, descript FROM ibwf_usergallery WHERE uid='".$whoimage."'"));


        
    $dscp mysql_query($item);

    echo
    "$dscp[4]"
    whats wrong?? i dont get anything from this

    can somebody tell me the right code ??
    PHP Code:
    /* I don't know everything hehe */ 
    Find me on facebook

    #2
    do like this
    PHP Code:
    $item mysql_fetch_array(mysql_query("SELECT uid, id, imageurl, sex, descript FROM ibwf_usergallery WHERE uid='".$whoimage."'"));


     
    $des=$item[4];

    echo 
    $des
    Last edited by ksg91; 16.03.10, 17:52.
    Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

    Comment


      #3
      Code:
      $item = mysql_fetch_array(mysql_query("SELECT  id, uid,  imageurl, sex, descript FROM ibwf_usergallery WHERE uid='".$whoimage."'")); 
      echo "$item[4]";
      Last edited by wapmetal; 16.03.10, 18:16.
      com site: http://vampist.net
      download site: http://wapdloads.net
      fb: http://www.facebook.com/pmplx

      Comment


        #4
        Thank you all
        This won't work ,the main problem is data selecting . May be uid not the $whoimage!!

        I did it in another way . Its
        SELECT descript FROM ibwf_usergallery WHERE imageurl="'.$imageurl.'"
        but its not good to keep path link in url
        any way ,how can i insert a new field in a table.
        Example i need to inser 'blabla' field in ibwf_users table .Then what to do?
        PHP Code:
        /* I don't know everything hehe */ 
        Find me on facebook

        Comment


          #5
          Originally posted by Ponick View Post
          Thank you all
          This won't work ,the main problem is data selecting . May be uid not the $whoimage!!

          I did it in another way . Its
          SELECT descript FROM ibwf_usergallery WHERE imageurl="'.$imageurl.'"
          but its not good to keep path link in url
          any way ,how can i insert a new field in a table.
          Example i need to inser 'blabla' field in ibwf_users table .Then what to do?
          Code:
          ALTER TABLE ibwf_users ADD ( blabla varchar(50) );
          Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

          Comment

          Working...
          X