Marek Kilimajer wrote: > Sorry, my fault, I forgot ) before {, > This line is right: > if( $res->numRows() ) { >
Yeah, I figured it out after walking away from it for a while if( $res->numRows() > 0) { while ($row = $res->fetchRow()){ $id = $row[0]; $question = $row[1]; $responce1 = $row[2]; $responce2 = $row[3]; $responce3 = $row[4]; } }else{ echo"bla bla"; } ?> now I have to post again on a strange row problem. Thank Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php