コード例 #1
0
ファイル: tests.php プロジェクト: codifyllc/phpopenfw
//-----------------------------------------------------------
//$data1->execute(array('issss', 12, 'todd', 'tomom', 'Where', 'FL'));
$id = 12;
$fname = 'todd';
$lname = 'tomrom';
$city = 'Where';
$state = 'FL';
qdb_exec($data_source, $strsql2, array('issss', &$id, &$fname, &$lname, &$city, &$state));
//-----------------------------------------------------------
// "DIO"
//-----------------------------------------------------------
//$data1->execute(array('issss', 13, 'ricky', 'richards', 'Here', 'OH'));
// Create New Object
$contact = new contact(false);
$contact->use_bind_params();
$contact->set_field_data('id', 13);
$contact->set_field_data('first_name', 'ricky');
$contact->set_field_data('last_name', 'richards');
$contact->set_field_data('city', 'Here');
$contact->set_field_data('state', 'OH');
//$contact->print_only();
//print $contact->save();
$contact->save();
//-----------------------------------------------------------
// Commit
//-----------------------------------------------------------
//print_array(qdb_list($data_source, $strsql0));
//$data1->rollback();
$data1->commit();
//***********************************************************************
// Rows should exist