At 4:22 PM -0600 1/17/01, Darryl Friesen wrote:
>>  $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.

Hmm.  I get the same error for $relationsrow there.

At 5:22 PM -0500 1/17/01, Ignacio Vazquez-Abrams wrote:
>
>Um, no. $relationsresult isn't an array, it's a MySQL result resource. Use
>mysql_data_seek() instead.

OK, could this be why I'm getting the same error message for $relationsrow?

Thanks for the help, btw!

-Maurice

-- 
Maurice Rickard
http://mauricerickard.com/

-- 
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