PHP CRUD: Bootstrap Modal: Insert Data into Database in PHP

  Рет қаралды 132,241

Funda Of Web IT

Funda Of Web IT

Күн бұрын

Пікірлер: 117
@muhammadzafar2470
@muhammadzafar2470 4 жыл бұрын
thx bro , God Bless you , from PAKISTAN . ONE of best tutorial i have found on youtube . thanks you for providing us best tutorials palylist. i learn a lot of thing as a beginner level designer.
@centurionman1
@centurionman1 2 жыл бұрын
God bless you. I have learnt so so so much from your simple way of teaching.
@emiliobruno9199
@emiliobruno9199 2 жыл бұрын
Hi ! You are a great teacher ! Congratulations from Brazil !
@Re3v3s
@Re3v3s 4 жыл бұрын
thx bro , God Bless you , From Thailand
@mulandulan
@mulandulan 4 жыл бұрын
CEO of 'ok' anyways thanks for the help sir :D
@lovdli
@lovdli 3 жыл бұрын
Thanks! You save my time a lot :-) cuz I struggle with inserting data from modal LOL
@juangonzales6405
@juangonzales6405 3 жыл бұрын
hello a query, how are you valid if the user already exists in the database?
@fiqtutorial9788
@fiqtutorial9788 5 жыл бұрын
Why alert in js not function?
@kerynwong6079
@kerynwong6079 3 жыл бұрын
thank so muchhhh💕this video have explained how the code run, it help me🙏🏻👍🏻
@mrdark4482
@mrdark4482 2 жыл бұрын
great love from lidhar states
@bumshit2160
@bumshit2160 5 жыл бұрын
Its always says data not saved . I have no error in the insertcodedata . What to do?
@anushnaik5898
@anushnaik5898 4 жыл бұрын
I also have same problem, what to do?
@pandurangpnaik2701
@pandurangpnaik2701 4 жыл бұрын
$query = "INSERT INTO news (`ntitle`,`nslug`,`ndescription`) VALUES ('$newstitle','$newsslug','$newsdescription')"; use ` `(available below esc key) commas for presenting database fields this will solve your problem.
@pandurangpnaik2701
@pandurangpnaik2701 4 жыл бұрын
see carefully commas they are different
@iqbalikhlasulamal3920
@iqbalikhlasulamal3920 4 жыл бұрын
@@pandurangpnaik2701 its work for me
@michaeldark2496
@michaeldark2496 2 жыл бұрын
Excellent work, one small thing : the alert doesn't work because the redirection is quicker than your alert ;)
@balochx
@balochx 2 жыл бұрын
i noticed that, but how do we make it work?
@poojam268
@poojam268 4 жыл бұрын
my modal popup window doesn't occur when i click on button please help me
@shubhamtehare
@shubhamtehare 4 жыл бұрын
i need help in project when i click button it dosen't popup window. can you help me please.
@jerrymapilisam6473
@jerrymapilisam6473 4 жыл бұрын
why only one of the modal get the id from the table please reply need help
@paoabella8981
@paoabella8981 2 жыл бұрын
hello if i may ask i have been trying to complete my registration form using this as a basis however everytime I enter a registry entry it always goes to else i tried reversing it however it does not work how do i do this?
@dhafer-Alhaidary
@dhafer-Alhaidary Жыл бұрын
Please when I click save data button, the data not save in my msql and redirect to insertcode.php page
@gusp5762
@gusp5762 4 жыл бұрын
Great explanation! Very usefull video
@Jiji_johny
@Jiji_johny 2 жыл бұрын
I can't work close button in poppup windows
@asaduzzamandaria8731
@asaduzzamandaria8731 3 жыл бұрын
Thanks a lot for this tutorial. But alert() cannot works when i save button click............
@semicolon4140
@semicolon4140 3 жыл бұрын
when i insert more than 20 records in database it shows error, how can I fix this?
@ainunnafil6331
@ainunnafil6331 2 жыл бұрын
great tutorial, thank you! it helps a lot 😁
@gusion_official59
@gusion_official59 3 жыл бұрын
Thanks bro this awesome 😁
@healingscenery-k2g
@healingscenery-k2g 3 жыл бұрын
how can i add a validation sir
@KinferEvans
@KinferEvans 3 жыл бұрын
great job but the edit does not work on the second page of datatables
@alcointernationalptyltd3656
@alcointernationalptyltd3656 3 жыл бұрын
brother , I tried this for last few days. I cant insert data . dont have any clue where have done mistake can you help please . I am very interested to learn more of this series ...
@botoi1118
@botoi1118 2 жыл бұрын
Good video but why at the end the script did not run and alert('Data saved')?
@jamloop3140
@jamloop3140 2 жыл бұрын
great tutorial thank you 🥰
@SaddamHussain-xf3ve
@SaddamHussain-xf3ve 4 жыл бұрын
bro how to do this task in PHP 7 version
@hamzaliaqat9259
@hamzaliaqat9259 5 жыл бұрын
how we can show large amount of data in table
@GokceTurkmendag
@GokceTurkmendag 3 жыл бұрын
Thanks for sharing, it is great!
@jezreelvillaruelgatmaitan459
@jezreelvillaruelgatmaitan459 5 жыл бұрын
Thanks A lot Sir, God bless you
@TheByteBit
@TheByteBit 4 жыл бұрын
great video; thanks for uploading this. One small correction: this is not a "modEl" it's a modAl as in "mo-dal".
@simplyjemelah8276
@simplyjemelah8276 Жыл бұрын
Hi please help my local host saya data not saved what could be the problem?
@divyabhaskar5948
@divyabhaskar5948 4 жыл бұрын
Tq so much sir 🙏🙏🙏🙏
@janeroselitsado1048
@janeroselitsado1048 3 жыл бұрын
What editor did u use sir?
@fundaofwebit
@fundaofwebit 3 жыл бұрын
VS Code
@arenajovembiulandia8870
@arenajovembiulandia8870 5 жыл бұрын
sou o único que não conseguiu fazer? quando crio conta não aparece na DB, não sei se errei o codigo php, ou se errei no cadastro do DB, mais não acho o erro. :( Am I the only one who could not do it? when I create account it does not appear in DB, I do not know if I ran the php code, or if I made a mistake in the database of DB, I do not think the error. :(
@eliezerviegas514
@eliezerviegas514 4 жыл бұрын
Também não consigo fazer, podem ajudar-me?
@hersheyaquino7886
@hersheyaquino7886 3 жыл бұрын
@@fundaofwebit I get this exact same error :
@abdulkodir4132
@abdulkodir4132 4 жыл бұрын
I followed the same tutorial. but the data is not entered into the database. no error message. please help me
@KeahEPlaza
@KeahEPlaza 2 жыл бұрын
sameee.
@jooliena
@jooliena 4 жыл бұрын
I guess I'm not the only one experiencing the error where you can't store data in the database. It always says "update failed". What to to do with this error ? Thanks :)
@pandurangpnaik2701
@pandurangpnaik2701 4 жыл бұрын
$query = "INSERT INTO news (`ntitle`,`nslug`,`ndescription`) VALUES ('$newstitle','$newsslug','$newsdescription')"; use ` `(available below esc key) commas for presenting database fields this will solve your problem.
@angelicajosemorales8382
@angelicajosemorales8382 4 жыл бұрын
@@pandurangpnaik2701 u da best! thanks a lot!
@hersheyaquino7886
@hersheyaquino7886 3 жыл бұрын
@@pandurangpnaik2701 it still does not work for me
@usefcorp
@usefcorp 4 жыл бұрын
Can you include source code in description?
@christianracz
@christianracz 4 жыл бұрын
after i followed these steps, when i fill up the form on the webpage, it can't be added either insert doesn't work for me (i inserted the database), neither codes work are different. please fix this solution aside this. About the mysql, i proceed it correctly on php, but the mysql doesn't(either using xampp or wampserver). help this problem. ty :(
@KeahEPlaza
@KeahEPlaza 2 жыл бұрын
same
@mynameishope484
@mynameishope484 3 жыл бұрын
you did a really gret job, i understand this immedietly. but can i ask a question? can i save or add data to different table? do i use join for that? thankyou
@ivantfredondoy4826
@ivantfredondoy4826 2 жыл бұрын
(2)
@rmendadala
@rmendadala 4 жыл бұрын
Could you please share the video on how to configure the myphpadmin?
@florentregisyoude3006
@florentregisyoude3006 3 жыл бұрын
Install xampp, it would help you
@michaelsenior5904
@michaelsenior5904 4 жыл бұрын
why do i get this error for all the fields-- Notice: Undefined index: fname in C:\xampp\htdocs\phpcrud\insert.php on line 13
@pandurangpnaik2701
@pandurangpnaik2701 4 жыл бұрын
$query = "INSERT INTO news (`ntitle`,`nslug`,`ndescription`) VALUES ('$newstitle','$newsslug','$newsdescription')"; use ` `(available below esc key) commas for presenting database fields this will solve your problem.
@hiralmehta4616
@hiralmehta4616 4 жыл бұрын
when I click on submit button localhost says "data not saved" can you please suggest any solution I also tried with echo data and its working but still, it's not going into the database. Do you think is there any problem with my database?
@jannahmuhamad6719
@jannahmuhamad6719 4 жыл бұрын
hi do u have the solution for this ?
@dipeshpatel2876
@dipeshpatel2876 4 жыл бұрын
I cant insert data in database. Can you plz help.
@pandurangpnaik2701
@pandurangpnaik2701 4 жыл бұрын
$query = "INSERT INTO news (`ntitle`,`nslug`,`ndescription`) VALUES ('$newstitle','$newsslug','$newsdescription')"; use ` `(available below esc key) commas for presenting database fields this will solve your problem.
@techkylover5288
@techkylover5288 4 жыл бұрын
Is your ID is primary key also
@fundaofwebit
@fundaofwebit 4 жыл бұрын
Yes primary and auto increment.
@hamzaliaqat9259
@hamzaliaqat9259 5 жыл бұрын
you are showing only 4 columns but if we have 10 columns then how to show
@kanuwebmedia8250
@kanuwebmedia8250 4 жыл бұрын
Very nice boos
@swapnilundage6676
@swapnilundage6676 5 жыл бұрын
There is no response from the button when i click on it, also the data dose'nt get stored in the db
@davinunesvit
@davinunesvit 5 жыл бұрын
must be JS, check if you are running js from local or url
@swapnilundage6676
@swapnilundage6676 5 жыл бұрын
@@davinunesvit i am running it from the URL
@joseluiscuevastorres6156
@joseluiscuevastorres6156 4 жыл бұрын
same problem, no body helps
@swapnilundage6676
@swapnilundage6676 4 жыл бұрын
@@joseluiscuevastorres6156 i have actually figured those things out, let me know if you are stuck somewhere
@salehsalim2200
@salehsalim2200 4 жыл бұрын
@@swapnilundage6676 please show us the way
@jaidinezhainereinjopia6409
@jaidinezhainereinjopia6409 5 жыл бұрын
When I click the button save it shows localhost says Data Not Saved I have no error in code 🙁🙁 pls answer
@fundaofwebit
@fundaofwebit 5 жыл бұрын
Echo or dump ur $query n check all the data are coming.. Thn.. proceed with mysqli_query()
@anazaidah2217
@anazaidah2217 4 жыл бұрын
Can ur show in another tutorial sir,please answer
@ntshepecarolmonate5041
@ntshepecarolmonate5041 4 жыл бұрын
Hey, what I did to get my code to work was not declare variables. I just added them in the query statement like below: $query = "INSERT INTO products (productName, productDescription, productQuantity, productImage) VALUES ('".$_POST["product_name"]."', '".$_POST["product_description"]."', '".$_POST["product_qty"]."', '".$_POST["customFile"]."')"; What I changed as well was add everything in the isset(). See below Hope that helps Source: www.tutorialspoint.com/mysqli/mysqli_insert_query.htm
@segba-caba-jorgegalati4296
@segba-caba-jorgegalati4296 5 жыл бұрын
me pueden ayudar... cuando presiono submit en el modal me dice que la página no se encuentra. pueden pasarme un correo así les paso el código y me dicen donde está el error
@fundaofwebit
@fundaofwebit 5 жыл бұрын
Please translate in English.
@segba-caba-jorgegalati4296
@segba-caba-jorgegalati4296 5 жыл бұрын
@@fundaofwebit can you help me ... when I press submit in the modal it tells me that the page is missing. can pass me an email so I pass the code and they tell me where the error is
@raimondsliepins4622
@raimondsliepins4622 4 жыл бұрын
JIC anyone runs into the same problem as me that you have 'DATA NOT SAVED' message popping up and nothing is written into the DB, here's one possible solution - remove the quotes around field names in the INSERT statement. Also, redirecting wasn't working for me before I removed the 'DATA SAVED' alert.
@qistinaabdjamil7165
@qistinaabdjamil7165 4 жыл бұрын
Thank you so much @Raimonds Liepins
@pandurangpnaik2696
@pandurangpnaik2696 4 жыл бұрын
Can I have source code of this?
@elyasayalew9325
@elyasayalew9325 5 жыл бұрын
sir thanx for your good and brief tutorial please update us with coming technology in jsp and java area tutorial
@javazantech
@javazantech 4 жыл бұрын
Great Video ! Thanks Man
@angelodeduyo3862
@angelodeduyo3862 4 жыл бұрын
Good why mine is Data Not Saved..
@camillev8019
@camillev8019 2 жыл бұрын
thank you sir :) but the problem now is the datatable is not working, it always 1 entries even though it has 5 entries
@nurtikahht3592
@nurtikahht3592 3 жыл бұрын
can you please share all your source code?
@faizatasneem8075
@faizatasneem8075 4 жыл бұрын
Great video. I followed your videos. Till, everything worked well. But when I tried this video, It shows "Data Not Saved" or blank page and when I checked on phpmyadmin page, data didn't get save. Please upload a video, what to do when we face such problems.. Thank You..
@jonaldlopez6226
@jonaldlopez6226 3 жыл бұрын
Have u solved it?
@thamiressantos2155
@thamiressantos2155 3 жыл бұрын
@@jonaldlopez6226 hi i have the same problem, can you help me?
@zenvatech915
@zenvatech915 5 жыл бұрын
Hello! Please the source code
@alexsircu3916
@alexsircu3916 3 жыл бұрын
18:39 Boom!! Thx!
@jonaldlopez6226
@jonaldlopez6226 3 жыл бұрын
Localhost says data not saved anyone?
@wpmaster9869
@wpmaster9869 3 жыл бұрын
good
@انس-خ5ق6س
@انس-خ5ق6س 5 жыл бұрын
thanks, can you upload the source code please
@harshitsharma5940
@harshitsharma5940 4 жыл бұрын
Nice dude i was trying it for the whole day , my fault was that i was not placing the form tag outside the model Subscribe him :))
@loopymomy2532
@loopymomy2532 2 жыл бұрын
This is working. When I do this it always shows as 0 in the database
@annbonador
@annbonador 3 жыл бұрын
not working
@atam942
@atam942 4 жыл бұрын
thanks you
@jrnz240
@jrnz240 2 жыл бұрын
add validation
@joaquinkuster5745
@joaquinkuster5745 4 жыл бұрын
ok
@talhasheikh2179
@talhasheikh2179 2 жыл бұрын
OK...
@h.a.6790
@h.a.6790 4 жыл бұрын
Challenge: Count the number of times he said "Ok".
@leonardoorden3180
@leonardoorden3180 4 жыл бұрын
why u always say ""OK"
@fundaofwebit
@fundaofwebit 4 жыл бұрын
It makes the people understand.. Every line I do code and tell ok... Just try once.. Start with OK.. Then they wil understand ur concept very well.. Ok?
@h.a.6790
@h.a.6790 4 жыл бұрын
Ok
@bryrodri
@bryrodri 5 жыл бұрын
Ok
@Cantakor
@Cantakor 2 жыл бұрын
Youre not preparing SQL statements. Thats unsecure
@netkongen
@netkongen 3 ай бұрын
Stop saying OKAY every goddamn sentence :D
@ijsis4091
@ijsis4091 2 жыл бұрын
thank you
@muhammadarifvlog4016
@muhammadarifvlog4016 5 жыл бұрын
Thanks A lot Sir, God bless you
@dhamakabajar1955
@dhamakabajar1955 2 жыл бұрын
thank you
PHP CRUD: Bootstrap Modal: Fetch Data from Database in PHP
14:32
Funda Of Web IT
Рет қаралды 43 М.
PHP CRUD: Bootstrap Modal: Edit and Update Data into Database in PHP
20:49
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 14 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 10 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 53 МЛН
How to Insert Form Data into Database using PHP
10:41
Code With Yousaf
Рет қаралды 29 М.
PHP CRUD: Bootstrap Modal: Delete Data from Database in PHP
12:42
Funda Of Web IT
Рет қаралды 78 М.
Laravel CRUD: Bootstrap Modal: Insert Data into Database (POP UP Modal)
19:55
PHP Ajax Update MySQL Data Through Bootstrap Modal
16:27
Webslesson
Рет қаралды 176 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 14 МЛН