Note that, The SQL INSERT statement will insert record in MySQL database using PHP function. 3 – Select.php – Select Record From MySQL DB. Then, create a new file named Select.php and add the following code into selete.php:
mysql_insert_id () will convert the return type of the native MySQL C API function mysql_insert_id () to a type of long (named int in PHP). If your AUTO_INCREMENT column has a column type of BIGINT (64 bits) the conversion may result in an incorrect value. Instead, use the internal MySQL SQL function LAST_INSERT_ID () in an SQL query.
'Ben'); INSERT INTO `owners` VALUES ('2', 'Jim'); INSERT INTO `owners` VALUES ('3', 'Harry'); INSERT INTO `owners` Tar emot POST-inmatning från index.php och lagrar det på databasen end -->