note 17056 added to function.odbc-connect

From: Date: Fri, 23 Nov 2001 19:30:01 +0000
Subject: note 17056 added to function.odbc-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-21210@lists.php.net to get a copy of this message
// simple conection $cnx = odbc_connect('cliente','Administrador',''); //query $SQL_Exec_String = "select * from Clientes"; //ejecucion query $cur= odbc_exec( $cnx, $SQL_Exec_String ); echo "<table border=1><tr><th>Dni</th><th>Nombre</th>". "<th>codigo</th><th>ciudad</th></tr>\n"; while( odbc_fetch_row( $cur ) ) { $Dni= odbc_result( $cur, 1 ); $Nombre= odbc_result( $cur, 2 ); $codigo= odbc_result( $cur, 3 ); $ciudad= odbc_result( $cur, 4 ); echo "<tr><td>$Dni</td><td>$Nombre</td>". "<td>$codigo</td><td>$ciudad</td></tr>\n"; } echo "</table>"; -- http://www.php.net/manual/en/function.odbc-connect.php http://master.php.net/manage/user-notes.php?action=edit+17056 http://master.php.net/manage/user-notes.php?action=delete+17056 http://master.php.net/manage/user-notes.php?action=reject+17056

« previous php.notes (#21210) next »