An instance exists
for every different set of options. The options array normally contains the keys defined in
the constructor options array and the key driver. driver determines the subclass that is
instantiated, available core drivers are MySQL and MySQLi.
Parameters options Database options
Returns A global instance of JDatabase
Appendix
[ 446 ]
getNullDate( ) : string
Gets a null date string specific to the current database driver.
Returns Null date-time string
getNumRows( cur : resource=null ) : mixed
Gets the number of records that were returned in the last query. If cur is specified, it will
determine the number of rows that were returned for the corresponding query. This only
works if the query was a SELECT, SHOW, DESCRIBE, or EXPLAIN query.
Parameters [cur] Database resource
Returns Number of records that were returned in the last query; false on failure
GetOne( query : string ) : string
Emulates ADOdb functionality.
Executes query and returns the value in the first field in the first record.
Pages:
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616