08/KukSQLite_03.php
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Author" content="Imrich BURANSKY" />
5 <meta http-equiv="Content-Type" content="text/html; charset=Windows-1250" />
6 <title>KukSQLite_03</title>
7 </head>
8 <body>
9 <pre>
10 <?php
11 $db = new SQLiteDatabase ("kuk.sqlite");
12 $dopyt = $db->query( 'SELECT * FROM cisla' );
13 echo "Metódy triedy <strong>".get_class( $dopyt )."</strong>\n\n";
14 print_r( get_class_methods( $dopyt ) );
15 ?>
16 </pre>
17 </body>
18 </html>
19 <!-- Vysledok
20
21 Meódy triedy SQLiteResult
22 Array
23 (
24 [0] => fetch
25 [1] => fetchObject
26 [2] => fetchSingle
27 [3] => fetchAll
28 [4] => column
29 [5] => numFields
30 [6] => fieldName
31 [7] => current
32 [8] => next
33 [9] => valid
34 [10] => rewind
35 [11] => prev
36 [12] => hasPrev
37 [13] => numRows
38 [14] => seek
39 )
40
41 -->