PHP CRUD Operations with MySQL Database | Create , Read , Update , Delete

PHP CRUD Operations with MySQL Database | Create , Read , Update , Delete

AUZ Tutorials

1 год назад

51,893 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

AUZ Tutorials
AUZ Tutorials - 30.11.2022 18:30

You can find the project files in description

Ответить
Lolibon Mamo
Lolibon Mamo - 12.09.2023 11:36

guys what is wrong with this code?

<?php
include("connect.php");
if (isset($_POST["create"])){
$title = mysqli_real_escape_string($conn, $_POST['title']);
$author = mysqli_real_escape_string($conn, $_POST['author']);
$type = mysqli_real_escape_string($conn, $_POST['type']);
$description = mysqli_real_escape_string($conn, $_POST['description']);
$sql = "INSERT INTO books (tile, author, type, description) VALUES ('$title','$author','$type','$description')";
if(mysql_query($conn, $sql))
{
echo "data is inserted";
}else{
die("something went wrong");
}
}
?>

Ответить
Basic Materials
Basic Materials - 03.09.2023 18:28

thats a fantastic tutorial i really get whats going on now.

Ответить
Yu Tsacarm
Yu Tsacarm - 20.05.2023 15:42

amazing video
please produce more vid like this

Ответить
Josan Villar
Josan Villar - 17.05.2023 05:04

Can you pls add "all fields are required"

Ответить
FACTS!
FACTS! - 14.05.2023 06:37

Can you add "All fields are required" error?
I hope you can help me

Ответить
Quinten
Quinten - 09.05.2023 14:03

Here is the code for the PhpMyAdmin (insert into SQL tab):


CREATE TABLE `books` (
`id` int(11) NOT NULL,
`title` varchar(250) NOT NULL,
`author` varchar(25) NOT NULL,
`type` varchar(50) NOT NULL,
`description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Ответить
Jone Q
Jone Q - 07.01.2023 12:31

Hi. how can i add search field?

Ответить
Shamali Kumarage
Shamali Kumarage - 27.12.2022 20:41

Thank you ❤️

Ответить
Phú Quốc Nguyễn
Phú Quốc Nguyễn - 19.12.2022 17:56

I hope you will come up with more PHP lessons

Ответить
Ovie Olori
Ovie Olori - 08.12.2022 11:43

Awesome

Ответить
Yuridiz Gonzales
Yuridiz Gonzales - 05.12.2022 05:07

bro i have error
after i click submit it says
Parse error: syntax error, unexpected token "}" in C:\xampp\htdocs\prob\process.php on line 28

Ответить
Krishan Kumar
Krishan Kumar - 03.12.2022 17:17

make a video on Multilevel dynamic menus kind of tree structure

Ответить
rokaia :b
rokaia :b - 03.12.2022 06:08

thank you so much!!!
needed the tutorial for few errors i had in my code, very helpful :)

Ответить
Nikola Tesla
Nikola Tesla - 28.11.2022 01:44

Thank you

Ответить