Connect($host,$uid,$pwd,$database)) err($conn->ErrorNo(). $sep . $conn->ErrorMsg()); $sql = undomq($HTTP_GET_VARS['sql']); if (isset($HTTP_GET_VARS['fetch'])) $ADODB_FETCH_MODE = $HTTP_GET_VARS['fetch']; if (isset($HTTP_GET_VARS['nrows'])) { $nrows = $HTTP_GET_VARS['nrows']; $offset = isset($HTTP_GET_VARS['offset']) ? $HTTP_GET_VARS['offset'] : -1; $rs = $conn->SelectLimit($sql,$nrows,$offset); } else $rs = $conn->Execute($sql); if ($rs){ //$rs->timeToLive = 1; echo _rs2serialize($rs,$conn,$sql); $rs->Close(); } else err($conn->ErrorNo(). $sep .$conn->ErrorMsg()); ?>