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?
[Back to original message]
|