I wanna use this script but make a form field from it were i can add text into the forms INSERT INTO `users`,on:
https://coursesweb.net/php-mysql/php-mysql-insert
INSERT into mysql from html form
-
- Posts: 282
- Location: Holland Rotterdam
INSERT into mysql from html form
Admin
Posts: 805
In that page there is an example script, in the section: "Insert data from a form into a database".
What did you try yourself, and where you can not make it work?
What did you try yourself, and where you can not make it work?
JanMolendijk
Posts: 282
Thanks for the support i had to look better & found the way
Similar Topics
-
Get ID after insert with PDO
PHP - MySQL
First post
Hello Coursesweb,Last post
I asking for longer time myself how to get the ID after an insert into database with pdo.
<?php
if(isset($_POST )){...
To get the id after an Insert with pdo, use the lastInsertId() method.
$sql = INSERT INTO tracker_comment...