Reply to Re: Searching through an array

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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