2 Sybase-CT sybase_field_* functions
4 <?php require('skipif.inc'); ?>
7 /* This file is part of PHP test framework for ext/sybase_ct
14 $db= sybase_connect_ex();
17 $q= sybase_unbuffered_query('select
21 getdate() as "lastchange"
25 var_dump(sybase_num_fields($q));
27 // Go through each field, dumping it
28 while ($field= sybase_fetch_field($q)) {
29 var_export($field); echo "\n";
32 // Seek to the second field and fetch it
33 var_dump(sybase_field_seek($q, 1));
34 var_export(sybase_fetch_field($q)); echo "\n";
39 resource(%d) of type (sybase-ct result)
41 stdClass::__set_state(array(
44 'column_source' => '',
48 stdClass::__set_state(array(
51 'column_source' => '',
55 stdClass::__set_state(array(
58 'column_source' => '',
62 stdClass::__set_state(array(
63 'name' => 'lastchange',
65 'column_source' => '',
70 stdClass::__set_state(array(
73 'column_source' => '',