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

Posted by Akhenaten on 05/17/07 22:57

I have an array created but I need to search it. The array is created
from a mysql call. Code as follows:

******************
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))
{
$poster2 = $u_row22['username'];


}

}

******************
I've tried including various *if* statements to search for $X in the
array (which does exist) but I keep failing miserably. Suggestions?

 

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

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