- <?php
- $servername = "localhost";
- $username = "username";
- $password = "password";
- $dbname = "myDB";
- ?>
Mysqli Insert Query – PHP Code |
---|
First, Create Mysql Username and Password and Database Second, Create a Table “sms” in Database Third, Create a Row “id and title” in Table.
Then, Edit following codes to connect your database and username with Mysql.
Then, Create a file “insert.php” and add following codes inside of the file.
Full Codes
Source: www.w3schools.com |
Published: | December 24, 2022 |
Author: | admin |
Category: | Mysql, PHP Source Code |
Views: | 31 |
This article was posted in Mysql, PHP Source Code. Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.
|
|