You are here: Re: Searching through an array « PHP Programming Language « IT news, forums, messages
Re: Searching through an array

Posted by Toby A Inkster on 05/18/07 07:47

Akhenaten wrote:

> 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!";
> }
> }
> }

You haven't defined the variable $username anywhere, unless it's defined
somewhere in the included file.

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux

 

Navigation:

[Reply to this 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

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