cubrid_fetch_row
Return a numerical array with the values of the current row
&reftitle.description;
arraycubrid_fetch_row
resourceresult
inttype
This function returns a numerical array with the values of the current row
from the result set, starting from 0, and moves the internal data pointer
ahead.
&reftitle.parameters;
result
result comes from a call to cubrid_execute
type
Type can only be CUBRID_LOB, this parameter will be used
only when you need to operate the lob object.
&reftitle.returnvalues;
A numerical array, when process is successful.
&false;, when there are no more rows; NULL, when process is unsuccessful.
&reftitle.examples;
cubrid_fetch_row example
10000");
printf("%-40s %-10s %-6s %-20s\n", "name", "area", "seats", "address");
while ($row = cubrid_fetch_row($req)) {
printf("%-40s %-10s %-6s %-20s\n", $row[0], $row[1], $row[2], $row[3]);
}
// if you want to operate LOB object, you can use cubrid_fetch_row($req, CUBRID_LOB)
cubrid_close_request($req);
cubrid_disconnect($conn);
?>
]]>
&example.outputs;
&reftitle.seealso;
cubrid_execute
cubrid_fetch
cubrid_fetch_array
cubrid_fetch_assoc
cubrid_fetch_object