All pastes #470017 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-04 00:45 UTC
rendered paste body
# perform the query
	$result = odbc_exec($conn, $query);
	$rslt = $result;

	# fetch the data from the database
	$keys = array_keys(odbc_fetch_array($rslt));
	
	echo "<table border=1>";
	echo "<tr>";
	for ($i = 0; $i < count($keys) + 1; $i++)
	{
		echo "<td>$keys[$i]</td>";
	}
	echo "</tr>";

        #ID I DONT REISSUE THIS QUERY THE SUBSEQUENT WHILE
        #LOOP WILL START AT THE SECOND ROM!  WHY?
	$result = odbc_exec($conn, $query);
	
	while ($res = odbc_fetch_array($result))