note 41993 deleted from function.odbc-result-all by nlopess

From: Date: Wed, 28 Apr 2004 15:50:02 +0000
Subject: note 41993 deleted from function.odbc-result-all by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68957@lists.php.net to get a copy of this message
Note Submitter: ---- If you want to assign the data to a session or a variable but found that it is not possible with the odbc_result_all() because it spit out the data instead. Then you're in for a luck, there is a different method to do this. Just do this instead, with ob_start(), ob_get_contents() and ob_end_clean() like this below. --snip-- $result1 = @odbc_exec($cid,stripslashes($_REQUEST['QueryText'])); //$_SESSION[$SessionTimestamp.'_phpNumRows'] = odbc_num_rows($result1); //$_SESSION[$SessionTimestamp.'_phpNumFields'] = odbc_num_fields($result1); ob_start(); odbc_result_all($result1,"class='SqlQueryBox' border='2' cellpadding='4' cellspacing='0' bordercolor='#009933'"); $_SESSION[$SessionTimestamp.'_phpTableData'] = ob_get_contents(); ob_end_clean(); --snip--

« previous php.notes (#68957) next »