note 15096 added to ref.sybase

From: Date: Tue, 28 Aug 2001 00:54:17 +0000
Subject: note 15096 added to ref.sybase
Groups: php.notes 
Request: Send a blank email to php-notes+get-17236@lists.php.net to get a copy of this message
maybe it can help. my database is ASE this is my script.... <? $cnn = sybase_connect("db_server","sa","password"); $result = sybase_query("Select itemno,stockno from your_db..your_table"); $i = 0; while ($r = sybase_fetch_array($result)) { $i++; $itemno = $r["itemno"]; $stockno = $r["stockno"]; echo "$i $stockno $itemno <br>"; } ?> note that I did not use the sybase_select_db("db") function because ASE had a default database. thx... http://www.php.net/manual/en/ref.sybase.php

« previous php.notes (#17236) next »