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]
|