Reply to Re: Query Problem

Your name:

Reply:


Posted by Andy Hassall on 06/26/06 19:52

On 26 Jun 2006 12:31:59 -0700, daksport00@gmail.com wrote:

>$mbrguid = (mysql_query(SELECT guid FROM users WHERE id='$inviteid'")
>if (is_null($mrbguid)){go into error page}
>
>The problem I am having is that when I echo the $mrbguid variable, it
>return a value of "Resource ID #19". This value doesn't appear in the
>Users table anywhere, let alone in ANY table.

This is how mysql_query works, it returns a result set resource.

http://uk.php.net/mysql_query

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

[Back to original 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

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