Need syntax for conditional in recordset loop

From: Date: Mon, 16 Jul 2001 23:37:57 +0000
Subject: Need syntax for conditional in recordset loop
Groups: php.db 
Request: Send a blank email to php-db+get-10487@lists.php.net to get a copy of this message
How would I code "IF .odbc_result($data2,$i) = 'SOX' THEN make it a link"? By link I mean that I want the word "SOX" highlited in blue and underlined and referencing a webpage that explains SOX verbosefully. Don't know PHP IF THEN syntax too well. /* fill table with data */ do { echo "<tr>"; $fields=odbc_num_fields($data2); for($i=3 ; $i<=$fields ; $i++) echo "<td nowrap>".odbc_result($data2,$i)."</td>"; echo "</tr>\n"; } while(odbc_fetch_row($data2)); echo "</table>"; John A. Davis Information Systems Specialist OHD DWP State of Oregon

« previous php.db (#10487) next »