public boolean insertAsDict (string $table, array $data, [array $dataTypes])
Inserts data into a table using custom RBDM SQL syntax
1 2 3 4 5 6 7 8 9 10 11 | //Inserting a new robot $success = $connection ->insertAsDict( "robots" , array ( "name" => "Astro Boy" , "year" => 1952 ) ); //Next SQL sentence is sent to the database system INSERT INTO `robots` (`name`, `year`) VALUES ( "Astro boy" , 1952); |
Please login to continue.