You are here: Re: noob question « PHP Programming Language « IT news, forums, messages
Re: noob question

Posted by Andy Hassall on 01/07/07 18:32

On Sun, 7 Jan 2007 09:39:17 -0800, "ernie.bornheimer"
<ernie.bornheimer@gmail.com> wrote:

>Okay, I know how to:
> - 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?

mysql_result or mysql_fetch_array.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация