Skip to content

Commit 0aa7591

Browse files
author
Radovan Janjic
committed
Update README.md
1 parent 32f0c72 commit 0aa7591

File tree

1 file changed

+1
-40
lines changed

1 file changed

+1
-40
lines changed

README.md

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -409,25 +409,6 @@ $data['date'] = 'now()';
409409
$insert_id = $db->arrayToInsert('table', $data);
410410
echo "Last insert id is: {$insert_id}";
411411

412-
// Array data
413-
// [fealdname] = feald value
414-
$data = array();
415-
$data['firstname'] = 'Radovan';
416-
$data['surname'] = 'Janjic';
417-
$data['email'] = 'rade@it-radionica.com';
418-
$data['date'] = 'now()';
419-
420-
// [fealdname] = feald value
421-
$data2 = array();
422-
$data2['firstname'] = 'Radovan';
423-
$data2['surname'] = 'Janjic';
424-
$data2['email'] = 'rade@it-radionica.com';
425-
$data2['date'] = 'now()';
426-
427-
// $db->arrayToInsert( ... ) multirow returns TRUE on success
428-
$db->arrayToInsert('table', array($data, $data2 /*, $data3 .... */ ));
429-
430-
431412
// More options
432413
/** Creates an sql string from an associate array
433414
* @param string $table - Table name
@@ -436,7 +417,7 @@ $db->arrayToInsert('table', array($data, $data2 /*, $data3 .... */ ));
436417
* @param string $duplicateupdate - ON DUPLICATE KEY UPDATE (The ON DUPLICATE KEY UPDATE clause can contain multiple column assignments, separated by commas.)
437418
* @return insert id or false
438419
*/
439-
// $db->arrayToInsert($table, $data, $ignore = FALSE, $duplicateupdate = NULL)
420+
// $db->arrayToInsert($table, $data, $ignore = FALSE, $duplicateupdate = NULL);
440421

441422
// Close connection
442423
$db->close();
@@ -501,26 +482,6 @@ if($db->affected > 0){
501482
echo "Updated: {$db->affected} row(s).";
502483
}
503484

504-
// Array data
505-
// [fealdname] = feald value
506-
$data = array();
507-
$data['id'] = 1; // key
508-
$data['firstname'] = 'foo';
509-
$data['surname'] = 'bar';
510-
$data['email'] = 'rade@it-radionica.com';
511-
$data['date'] = 'now()';
512-
513-
// [fealdname] = feald value
514-
$data2 = array();
515-
$data2['id'] = 2; // key
516-
$data2['firstname'] = 'Radovana';
517-
$data2['surname'] = 'Janjic';
518-
$data2['email'] = 'rade@it-radionica.com';
519-
$data2['date'] = 'now()';
520-
521-
// $db->arrayToUpdate( ... ) multirow returns TRUE on success
522-
$db->arrayToUpdate('table', array($data, $data2 /*, $data3 .... */ ));
523-
524485
// More options
525486
/** Creates an sql string from an associate array
526487
* @param string $table - Table name

0 commit comments

Comments
 (0)