Just a simple example modified from the sybase_fetch_array():
sybase example:
<?php
$db = sybase_connect("sybtest", "sa", "teacher");
$q = sybase_query("select name from syslogins", $db);
while($row = sybase_fetch_row($q)) {
while(list($k, $v) = each($row)) {
echo "\$row[$k] => $v\n";
}
}
?>
$row[0] => dnld
$row[0] => edi
$row[0] => oes
$row[0] => oesuseradmin
$row[0] => rpts
$row[0] => sa
$row[0] => upld