|
Posted by Geoff Berrow on 05/18/07 00:04
Message-ID: <1179445790.090039.137610@k79g2000hse.googlegroups.com> from
Akhenaten contained the following:
>
>function respond_check($qid)
> {
> include "db.inc.php";
>$postchk2 = mysql_query("SELECT * FROM `answers` , `users` WHERE `qid`
>= $qid AND `a_uid` = `userid` LIMIT 0, 30",$db);
>while ($userx=mysql_fetch_array($postchk2))
>{
>if (in_array($username, $userx)) {
> echo "Got It!";
>}
>}
>}
Can't see why that won't work offhand. Could it be a case sensitive
thing?
But why don't you use the query to search for the username?
--
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]
|