using this code, I was able to get the results to print to the screen but count() isn't working. Can anyone give me any direction as to what I'm doing wrong?

Code:
$sql				= "SELECT compid FROM computers WHERE Name='$HostName' AND MACAddress='$MAC'"
$retcode = DBGetRecordSet($objConn,$sql)
$datediff = $UnixDate - $UnixMonth

? $retcode
for $i=0 to ubound($retcode,1)
for $x=0 to ubound($retcode,2)
$test = $retcode[$i,$x]
? $test
next
next



Eventually what I want to do is be able to count the results of the query and then perform another database transaction based off of the value of that number. Can anyone provide any direction?