Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites
//loop over fields while(list($key, $value) = each($record)) { print("B>Field $key: $value/B>\n"); } } //close connection ...
boolean dbase_replace_record(integer database, array record, integer record_number) Use dbase_replace_record to change the conte ...
if(dba_exists('3', $db)) { // remove item 3 dba_delete('3', $db); } else { print('Record does not exist'); } // close database d ...
?> string dba_firstkey(integer link) The dba_firstkey function returns the first key in the database. If the database is empt ...
integer dba_open(string filename, string mode, string type, ...) Use dba_open to establish a link to a dbm-style database. A pos ...
<? // open database in write mode $db = dba_popen('inventory', 'w', 'gdbm'); if($db) { //optimize database dba_optimize($db); ...
if($db) { for($n=1; $n=10; $n++) { //insert row dba_insert($n, '', $db); //synchronize dba_sync($db); } // close database dba_cl ...
print("/TH>"); } print("/TR>\n"); //loop over each row for($row=1; $row = filepro_rowcount(); $row++) { print("TR>\n"); ...
integer filepro_fieldwidth(integer field_number) Use the filepro_fieldwidth function to find the width of the specified field. S ...
The ifx_connect function returns a connection to an Informix database. All of the arguments are optional and will draw their val ...
integer ifx_create_char(string data) The ifx_create_char function creates a character object. An identifier for the character ob ...
The ifx_fieldtypes function returns an array describing the type for eachcolumn in the result set. Possible values are SQLBOOL, ...
The ifx_num_fields function returns the number of columns in the result set. integer ifx_num_rows(integer result) Use ifx_num_ro ...
<? //connect to database if(!($dbLink = ifx_pconnect("mydb@ol_srv1", "leon", "secret")) { print("Unable to connect!\n"); exit ...
Note that both cursor_type and blob_id are optional. The ifx_query function will allow you to specify an array of blob identifie ...
string ifxus_read_slob(integer slob, integer bytes) The ifxus_read_slob function returns data from the specified slob object. Th ...
Use ibase_blob_cancel to discard a blob you have created with ibase_blob_create. boolean ibase_blob_close(integer blob) The ibas ...
The ibase_commit function commits the default transaction on the specified link, or the last link if none is specified. integer ...
Use ibase_field_info to get information about a column in a result set. An associative array is returned containing the followin ...
//begin transaction $dbTran = ibase_trans(IBASE_DEFAULT, $dbLink); //insert a message using bind parameters $Query = "INSERT INT ...
«
14
15
16
17
18
19
20
21
22
23
»
Free download pdf