From 0aa759107069b0e8664d033497c82b0ffdb9edea Mon Sep 17 00:00:00 2001 From: Radovan Janjic Date: Tue, 12 Aug 2014 11:01:58 +0200 Subject: [PATCH] Update README.md --- README.md | 41 +---------------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/README.md b/README.md index 26751ee..465ba3f 100644 --- a/README.md +++ b/README.md @@ -409,25 +409,6 @@ $data['date'] = 'now()'; $insert_id = $db->arrayToInsert('table', $data); echo "Last insert id is: {$insert_id}"; -// Array data -// [fealdname] = feald value -$data = array(); -$data['firstname'] = 'Radovan'; -$data['surname'] = 'Janjic'; -$data['email'] = 'rade@it-radionica.com'; -$data['date'] = 'now()'; - -// [fealdname] = feald value -$data2 = array(); -$data2['firstname'] = 'Radovan'; -$data2['surname'] = 'Janjic'; -$data2['email'] = 'rade@it-radionica.com'; -$data2['date'] = 'now()'; - -// $db->arrayToInsert( ... ) multirow returns TRUE on success -$db->arrayToInsert('table', array($data, $data2 /*, $data3 .... */ )); - - // More options /** Creates an sql string from an associate array * @param string $table - Table name @@ -436,7 +417,7 @@ $db->arrayToInsert('table', array($data, $data2 /*, $data3 .... */ )); * @param string $duplicateupdate - ON DUPLICATE KEY UPDATE (The ON DUPLICATE KEY UPDATE clause can contain multiple column assignments, separated by commas.) * @return insert id or false */ -// $db->arrayToInsert($table, $data, $ignore = FALSE, $duplicateupdate = NULL) +// $db->arrayToInsert($table, $data, $ignore = FALSE, $duplicateupdate = NULL); // Close connection $db->close(); @@ -501,26 +482,6 @@ if($db->affected > 0){ echo "Updated: {$db->affected} row(s)."; } -// Array data -// [fealdname] = feald value -$data = array(); -$data['id'] = 1; // key -$data['firstname'] = 'foo'; -$data['surname'] = 'bar'; -$data['email'] = 'rade@it-radionica.com'; -$data['date'] = 'now()'; - -// [fealdname] = feald value -$data2 = array(); -$data2['id'] = 2; // key -$data2['firstname'] = 'Radovana'; -$data2['surname'] = 'Janjic'; -$data2['email'] = 'rade@it-radionica.com'; -$data2['date'] = 'now()'; - -// $db->arrayToUpdate( ... ) multirow returns TRUE on success -$db->arrayToUpdate('table', array($data, $data2 /*, $data3 .... */ )); - // More options /** Creates an sql string from an associate array * @param string $table - Table name