Reply to Re: Query Problem

Your name:

Reply:


Posted by Geoff Berrow on 06/26/06 20:05

Message-ID: <1151350319.546164.145600@i40g2000cwc.googlegroups.com> from
daksport00@gmail.com contained the following:

>$mbrguid = (mysql_query(SELECT guid FROM users WHERE id='$inviteid'")
>if (is_null($mrbguid)){go into error page}
>
>
>The table Users has a text field GUID which defaults to a Null. Id is
>a numberic player ID which is typed in by the end-user.
>
>
>All of my SQL knowledge tells me that this code should pull the GUID
>field form the Users table based on the ID.


$result = mysql_query("SELECT guid FROM users WHERE id='$inviteid'");
$mbrguid=mysql_fetch_array($result);
if (is_null($mrbguid['guid'])){go into error page}

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

[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

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