note 56799 added to function.odbc-fetch-array

From: Date: Thu, 15 Sep 2005 14:24:13 +0000
Subject: note 56799 added to function.odbc-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-95226@lists.php.net to get a copy of this message
Hi. And using the same example to connect to a SYBASE ASE 12.0 Server with ODBC and Stored procedures, we have the following code: <?PHP function sybase_rs($SP){ include("INCLUDE/sdd.odbc.conect.php"); $ARRAY = array(); $RS = odbc_exec($conexion,$SP); $CONT = 1; while (odbc_fetch_row($RS)) { for ($y = 1; $y <= odbc_num_fields($RS); $y++) echo odbc_result($RS,$y); $CONT++; } if ($CONT > 1) } $r = sybase_rs("{CALL dbo.sdd_determina_usuario ('". $_REQUEST['usuario']."','". $_REQUEST['clave']."')}"); echo $r; ?> ---- Manual Page -- http://www.php.net/manual/en/function.odbc-fetch-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56799 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56799&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56799&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56799&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56799&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56799&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+56799&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56799&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56799&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95226) next »