Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- noob question
January 7, 2007, 5:39 pm
rate this thread
- construct a SQL query and get a result set
- loop through the result set and echo the fields I need
But what I really need to do is get a value from a field and put it in a
variable, and I can't seem to get it to work, because then the variable just
holds "resource id#"
So the query I'm using returns only one row, since I'm filering on the
primary key, and I can test for one row returned. If one row is returned,
how do I pull out the value of one field and put it in a variable?
I know this is very basic stuff, but I can't seem to find the answer. Even
just a very simple reply, pointing me in the right direction would be
Re: noob question
the values, where the keys of the array would be associative. For
instance, it'll have for a table that's got the fileds "Name" and
"Surname" the following array:
[Name] => peter
[Surname] => pan
Andy Hassall wrote: