Insert data into MySql Database using FETCH API and PHP

preview_player
Показать описание
Hello everyone, in this video tutorial I'm going to teach you how you can insert data into Mysql Database using Fetch API with PHP.

►Buy me a cup of coffee:
Рекомендации по теме
Комментарии
Автор

Man I was looking for that answer for 2 days straight... Huge thanks !!

MegaMagnax
Автор

Just what I wanted; the interface between Javascript and PHP, thank you ​ Mpemba Inc.

AndrewKwabula
Автор

Tanks my frend .. muito obrigado pelo tutorial me ajudou muito .. parabens .

empresadivulga
Автор

hi do you also have a edit and delete code? thanks

bryandelacruz
Автор

Thank you, worked.

Can you explain the

for (const p of new FormData(form)) {
data.append(p[0], p[1])
}

and the last part of the code .then(response => =>

rpgames
Автор

my javascript is all working and I get a good response from the server but the php file I am sending to can not read any of the post. I am using XAMP mysql php I am using your php code but when I put in $post_title = $_POST['post_title']; i get this message back -- Undefined index: post_title in on line 10. any help would be great!

camera-support-rentals
Автор

I have an API link that would replace the "Form" what changes do I need to make to have it load the data from the API link for multiple records?

SalientAnimal
Автор

At last I found this kind of tutorial. But I have a question, what is the purpose of putting a method 'POST'?

JuanityTV
Автор

Hi sir how can i clear the inputs after execute the code?

setsunaafie