> $relationsresult = mysql_query($relationsquery) or die(mysql_error());
>
> while ($relationsrow = mysql_fetch_array($relationsresult)) {
>
> $thischild = $relationsrow["childsku"];
> if ($thevalue == $thischild) {
> echo " checked";
> }
>
> } // end while for relations loop
>
> reset($relationsresult);

Nope.  The array is $relationsrow (an array of the columns for the current
row returned by mysql_fetch_array).  $relationresult is just that; a result
'flag' for the query indicating whether or not the query was successful.



- Darryl

 ----------------------------------------------------------------------
  Darryl Friesen, B.Sc., Programmer/Analyst    [EMAIL PROTECTED]
  Education & Research Technology Services,     http://gollum.usask.ca/
  Department of Computing Services,
  University of Saskatchewan
 ----------------------------------------------------------------------
  "Go not to the Elves for counsel, for they will say both no and yes"



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to