Leading back in the code, that would suggest that $nrows is not greater than zero - could be a problem with $nrows then, and anything associated with that, i.e. $stmt, whether there is content in the db where REC_VALUE = 'uczmdsk1' etc. etc. Work back down the chain and see if you can find anomalies... raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php