Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: What's up with recordsets???


Message #1 by "Michael Blake" <mblake@r...> on Wed, 24 Jan 2001 19:59:22 -0000
Hello friends,
Say I'm getting/looping throught a recordset as such:

  $rsRec = $conn->getMyRecordset();
  while($row = mssql_fetch_array($rsRec))
  {
     $first_value = $row["first_value"];

     echo($first_value);
  }

On a large record set I'll get a "Can not read at memory location..."
error. If I include a line:

  $first_value = 0;

after the echo statement just before the while loop is returned, it works
fine. I've had to do this in situations where many values are having to be
reset. Why is the necessary and is there a better way?

Many thanks,
Michael

  Return to Index