description selecting probz

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

  • ksg91
    replied
    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) );

    Leave a comment:


  • Ponick
    replied
    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?

    Leave a comment:


  • wapmetal
    replied
    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.

    Leave a comment:


  • ksg91
    replied
    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.

    Leave a comment:


  • Ponick
    started a topic description selecting probz

    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 ??
Working...
X