Here's the code:
Code: Select all
//Gets the data from each row of the results from the query and parses each row as a new result_field object into a result_set object
for($i=0; $i<$result->num_rows; $i++)
{
$row=$result->fetch_row( ); //Gets an index array of each row
/*Traverses throuch each column of $row, and creates a new result cell for each column and adds the results
to a temporary result_field array.
Also gets the data type from the current colum*/
for($j=0; $j<sizeof($titles); $j++)
{
$temp_data_type = $row[$j]->type; //LINE 85