MySQL Forums
Forum List  »  Newbie

Storing a field value into a variable
Posted by: Anthony
Date: May 03, 2005 05:38AM

Hello.
I am having some trouble in trying to extract the contents of a particular field when I know another field value.
Here is what I have so far:

$result=mysql_query("SELECT description from ftloans_des where id='$delete[$i]'")

Now, because id is unique, I will only see 1 value returned from the description field.
What I want to do with this variable is to use it for another mysql_query but alas, I don't seem to know how to pass the value of the description field into $result variable.

Could someone help me with this?

Thanks

Options: ReplyQuote


Subject
Written By
Posted
Storing a field value into a variable
May 03, 2005 05:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.