description selecting probz

Started on the old forum in March 2010 · view the original in the archive · old links redirect here

4 replies · 354 views · started 16 years ago · 1 min read

3 participants
Ponick Developer · 216 posts #1
$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 ??

/* I don't know everything hehe */

Find me on facebook

ksg91 Developer · 162 posts #2

do like this

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

 $des=$item[4];

echo $des; 

Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

Ponick Developer · 216 posts #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?

/* I don't know everything hehe */

Find me on facebook

ksg91 Developer · 162 posts #5

Ponick wrote: 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?

ALTER TABLE ibwf_users ADD ( blabla varchar(50) );

Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

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