PHP Ajax CRUD Application Tutorial - MySQL & Bootstrap & jQuery DataTables [Part 1]

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 163

  • @parkhongjoon
    @parkhongjoon 7 лет назад +1

    Thanks a lot, everything is very clear and works fine! First step to build the bills mini app. for my old dad

  • @OnlyInstaGoX
    @OnlyInstaGoX 5 лет назад +1

    Thank you, I like the tutorial very informative, but also I like the atmospheres and the lights colors you are in. You got new subscriber.

  • @MrPherez
    @MrPherez 6 лет назад +2

    This is a great tuit and im seeing few likes lets share and let this champ do more tuits to help alot of aspiring programmers.

  • @lemuelflorescantillo3053
    @lemuelflorescantillo3053 6 лет назад +1

    Hi! i'm having trouble getting the data to show on the table...
    update: just solved my problem forgot the great video man keep it up!

  • @gianluca_ruggieri
    @gianluca_ruggieri 7 лет назад +1

    You should be on Udemy, very clear teaching style , thanks!

  • @ABC-ms3ts
    @ABC-ms3ts 7 лет назад +1

    Many many happy RETURNS of the day for this video no words to say thanks.

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Awesome, I am so happy that I could help you. On Wednesday and Friday, I will release parts 2 and 3. :)

  • @BucurIonNiculae
    @BucurIonNiculae 7 лет назад +2

    I'm watching you with great interest. I'm waiting for other good videos on this channel. I like this series, greetings from Romania.

  • @loebys
    @loebys 4 года назад +1

    nice video, simple method, easy to understand

  • @shbita
    @shbita 5 лет назад +1

    Great tutorials ... thanks man .
    Respect for sharing knowledge free to others.

  • @31seira
    @31seira 6 лет назад +1

    This is a great tutorial Senaid. I hope you can continue creating this kind of content. One question is it possible to update the table list after the save button and the modal page is still on top so that if the user can continue entering data. In short, refresh on save rather than hitting the browsers refresh button. Thank you.

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Yes, that is possible, and if I am remember correctly I am showing how to do it in later parts of this tutorial.

  • @jannreyvlogs2023
    @jannreyvlogs2023 6 лет назад +1

    Hello, Senaid im always watching your tutorial and I saw everytime you will create new database, you always add utf-8 unicode c3 I just want to know, what is the purpose of that..
    Thank you, I will Learned a lot from you,
    Your a Great Teacher, Keep it up

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Thank you, and I am sorry that I didn't reply earlier, just saw this comment. The purpose of that is that you basically can use any type of characters inside your table, without getting some weird.

  • @carloamante4314
    @carloamante4314 5 лет назад

    Hi! Thanks a lot for this tutorial. Now the problem is: after clicking submit, the modal does not close; how to fix it?
    Moreover, how to reset modal content after submit click?
    I'm trying to refresh table content after modal submit, any ideas?
    Regards

  • @pedroavendanor.7644
    @pedroavendanor.7644 6 лет назад

    Senaid, after several tries I was able to download the source code. Thank you again for sharing your knowledge in there fine tutorials!!!

    • @josuefelix7808
      @josuefelix7808 3 года назад

      I know im asking randomly but does any of you know of a tool to get back into an instagram account?
      I was dumb forgot my login password. I love any tips you can give me.

    • @coryisrael2406
      @coryisrael2406 3 года назад

      @Josue Felix instablaster ;)

    • @josuefelix7808
      @josuefelix7808 3 года назад

      @Cory Israel I really appreciate your reply. I got to the site on google and Im waiting for the hacking stuff atm.
      I see it takes quite some time so I will get back to you later when my account password hopefully is recovered.

    • @josuefelix7808
      @josuefelix7808 3 года назад

      @Cory Israel It did the trick and I finally got access to my account again. Im so happy:D
      Thanks so much, you saved my account !

    • @coryisrael2406
      @coryisrael2406 3 года назад

      @Josue Felix happy to help xD

  • @rohansaand2023
    @rohansaand2023 7 лет назад +1

    Bro you are on fire. Such quality videos. You are making development so much fun.
    A small request, whenever you get time, sometime in future, if you can make something with php which has a payment system, it will be very helpful.

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Oh, thank you so much for nice words and support! Yes, for sure I can create a tutorial on how to add some payment system to your website. Written in my notes already... :)

    • @rohansaand2023
      @rohansaand2023 7 лет назад +1

      You are the man! :)

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      thank you :)

  • @anils1383
    @anils1383 3 года назад

    Hi
    Thank you very much for this wonderful tutorial, but
    I have a problem, when I click the Save button, no data is saved
    Getting the following error:
    access to xmlhttprequest at 'file:///c:/xampp/htdocs/php_ajax_crud application/ajax.php' from origin 'null' has been blocked by cors policy: cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
    How to solve the problem, please advice.

  • @Karisiye
    @Karisiye 6 лет назад +1

    oohhh man ur are the greatest tearcher u just help so much keep it up

  • @pedroavendanor.7644
    @pedroavendanor.7644 6 лет назад

    Thank you for your excelent tutorials and for your will to help other people!!
    Would you please check what is happening with the downloading of the source code. I follow the instructions and no email is received to proceed witih the download. Thank you and best regards.

  • @mahmoudtalaatelhakim
    @mahmoudtalaatelhakim 6 лет назад +1

    Thank you for your effort but I think there is a big issue that you have to refresh the screen after adding a new country to be shown in the datatable on screen. If you can modify your code to avoid this issue will be great.

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Yes, great suggestion. I have completely forgot to show that in the video, but if you check the comments below I am sure you can find my solution to that problem.

    • @mahmoudtalaatelhakim
      @mahmoudtalaatelhakim 6 лет назад

      @@SenaidBacinovic Thank you so much

    • @31seira
      @31seira 6 лет назад

      @@mahmoudtalaatelhakim Hi. Were you able to add that functionality. i am trying the ajax.reload but it always throw an error. Thanks

  • @matejharabin1323
    @matejharabin1323 3 года назад

    Hello I have problem with view the data from database in my project
    But I am using PDO instead of mysqli
    I have done the part with adding to database through pdo
    But the view I dont know how to solve
    Any ideas?

  • @christianpaulaltares9187
    @christianpaulaltares9187 7 лет назад +1

    Great tutorial. can you make or help us in making a finance base system. the process of money flow and stuffs.. thank you for the help.. Learned a lot!!

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Thank you so much for nice words. I will think about that and probably make a tutorial for you. :)

  • @ziadnetcom
    @ziadnetcom 6 лет назад

    Hi
    Thank you very much for this wonderful tutorial, but
    I have a problem, when I click the Save button, no data is saved
    Get the following error:
    Failed to load file: /// C: /xampp/htdocs/ziadnew/ajax.php: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
    How to solve the problem

  • @tyros84
    @tyros84 4 года назад

    I am getting the error, "Notice: Trying to get property 'num_rows' of non-object in C:\xampp\htdocs\mdb\ajax.php on line 19
    reachedMax". Does anyone have any info on how to fix it?Thanks

  • @marvincaldea5925
    @marvincaldea5925 6 лет назад

    can you make the datatable auto load after crud data ?

  • @MrAbdooo2008
    @MrAbdooo2008 6 лет назад

    great job Coding Passive Income
    plz do a crud system with images and files like this one
    there is no one done this video
    we need it

  • @MarijanKopcic
    @MarijanKopcic 5 лет назад +1

    Svaka čast :)

  • @jeffersonsarmiento700
    @jeffersonsarmiento700 5 лет назад +1

    Great tutorial. 😊

  • @andykyle9347
    @andykyle9347 6 лет назад

    Hii do u have tutorial crud with images or pdf file and did u can explain deep about for what you did in your code how it works and why

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      I don't have with images, but why don't you just watch those video tutorials?

  • @gushung0
    @gushung0 7 лет назад +1

    I am getting the error, "Maximum call stack size exceeded". Does anyone have any info on how to fix it?

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Can you show the code where you experience that problem?

  • @abidimarwen8351
    @abidimarwen8351 6 лет назад +1

    you are a life saver, thank you very much, thank you i'm Grateful to you :)

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      thank you :)

    • @abidimarwen8351
      @abidimarwen8351 6 лет назад

      i'm getting this error and i don't know how to fix it, please help.
      Failed to load resource: the server responded with a status of 502 (Bad Gateway):63342/Source%20Code/ajax.php:1

  • @flordelizatordera3601
    @flordelizatordera3601 6 лет назад

    How to get the data without refreshing the browser?
    Please answer me 😊
    Thank you

  • @patrickemerysevor7410
    @patrickemerysevor7410 3 года назад

    please why aren't you doing video again?

  • @abigailliguma4196
    @abigailliguma4196 4 года назад

    i keep getting an error that says $.ajax (index line 84) is not a function

  • @joelparreno10
    @joelparreno10 6 лет назад +3

    a big guy with a small voice thanks!

  • @luckyandroid3568
    @luckyandroid3568 5 лет назад

    Is there is using MySQL Sir?

  • @fizanazhar6816
    @fizanazhar6816 6 лет назад

    Hi Senaid, I'm connecting database using PDO php. Data is inserting in database but not showing in Table.

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Have you watched my tutorial about PDO? I believe it will help you solve the issue.

    • @fizanazhar6816
      @fizanazhar6816 6 лет назад

      Okay... Let me watch..... :)

  • @tarekhusam
    @tarekhusam 7 лет назад

    The best! Keep it bro ❤️

  • @ijasdeen3809
    @ijasdeen3809 6 лет назад

    What kind of the PHP is it? It's different from what I studied.

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Hmm, PHP is PHP, there isn't different versions. Maybe you have been learning some frameworks?

  • @muhammadtaifkhan4359
    @muhammadtaifkhan4359 5 лет назад

    Please make this video with just vanilla JavaScript. Thanks

  • @tiparess17
    @tiparess17 4 года назад +1

    Make a tutorial for datatables server side processing

  • @soumyaappugouda4676
    @soumyaappugouda4676 6 лет назад

    Hi senaid, im not getting how to insert data from input form though I hv written code in different way, its not inserting into my phpmyadmin db (own server space)
    Please help to solve this.
    Thanks in advance!

    • @soumyaappugouda4676
      @soumyaappugouda4676 6 лет назад

      This is the error am getting, i checked with this, but there is no such thing i found:
      [18-Apr-2018 05:46:25 Etc/GMT] PHP Parse error: syntax error, unexpected '"', expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/myvisstg/public_html/new_curd/controller/addDetail.php on line 32

    • @soumyaappugouda4676
      @soumyaappugouda4676 6 лет назад

      Below is the code for above error:
      $conn = openConnection();
      $addsql = "INSERT INTO `abc`.`holiday_tbl` (`type`, `tagline`, `dest_name`,`dest_descri`,`pricing`,`days`,`nights`,`itenary`) VALUES
      ('".$type."','".$tagline."', '".$dest_name."','".$dest_descri."','".$pricing."','".$days."','".$nights."','".$itenary."');
      $resultbot = $conn->query($addsql);
      if ($resultbot == TRUE) {
      $output = array();
      $output["status"] = "OK";
      echo json_encode(array("result"=>$output));
      }
      ===============

  • @aceimd1395
    @aceimd1395 6 лет назад

    Your so awesome.... please help me.. i got this error syntax error, unexpected ':', expecting ','or ')' in ajax.php

  • @peterkachezi8107
    @peterkachezi8107 4 года назад

    Brother can u do Dot Net MVC C#

  • @breadpit
    @breadpit 6 лет назад +1

    Source Code link not work

  • @ArmindodeJesus
    @ArmindodeJesus 5 лет назад

    great video
    everything is fine except the special characters are not showing and when having a special character can not click Edit, View

  • @mdhabib-xf1dc
    @mdhabib-xf1dc 7 лет назад +1

    thank you so much sir for help nice video

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Thank you so much! Appreciate the support. :)

    • @mdhabib-xf1dc
      @mdhabib-xf1dc 7 лет назад +1

      ur welcome i am always waiting your video every days new things you uploaded really nice sir

  • @egilartboy
    @egilartboy 6 лет назад +1

    Thank you very much.....

  • @lawviktor7610
    @lawviktor7610 7 лет назад +1

    Oh my dear friend, what I've got is the whole php codes within the ajax.php displayed on the alert(responds), it seems like the ajax here is just load the whole ajax.php code into the index.html, but the codes within the ajax.php are not excecuted, what should I do? Thank you~!

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      In most cases that happens if you forget to put exit() at the end of your ajax request (in PHP), so just make sure to do it and you should be fine. :)

    • @lawviktor7610
      @lawviktor7610 7 лет назад

      Cool, thank you for your help, I'll give it a try, I'm such a beginner here, again, appreciate for what you've done on the youtube!

    • @lawviktor7610
      @lawviktor7610 7 лет назад

      Hi friend, that problem is fixed, yet another one has occurred, the problem should be existing somewhere in here: if($avr = 'addNew'){
      $sql = $conn->query("SELECT id FROM country WHERE countryName = '$name'");
      if($sql->num_rows>0){
      exit("Country with this name already exists!");
      }else{
      $conn->query("INSERT INTO country (countryName, shortDesc, longDesc) VALUES ('$name','shortDesc','$longDesc')");
      exit ('Country has been inserted!');
      }
      }
      the reminder said: "trying to get property of non-object."
      Thank you very much mate!
      Viktor

    • @lawviktor7610
      @lawviktor7610 7 лет назад +1

      I've fixed with other way round ^^; thank you~

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Amazing, glad you made it!

  • @Pajaro95076
    @Pajaro95076 6 лет назад

    Senaid, What PATH or folder would I put your ajax.php and index.html under? It seems not to ADD data to mySQL. I get no error, in fact I get no messages. Nothing happens when I click SAVE. It seems the URL: 'ajax.php', parameters are not executing?

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Do you have any error in console? Can you see what happens when/if ajax request has been made?

    • @Pajaro95076
      @Pajaro95076 6 лет назад

      That so nice of you to respond so quickly. This what I get in Firefox dev console:
      XML Parsing Error: no root element found
      Location: file:///c:/xampplite/htdocs/CRUD-Step-1/ajax.php
      Line Number 46, Column 3:
      ajax.php:46:3
      XML Parsing Error: no root element found
      Location: file:///c:/xampplite/htdocs/CRUD-Step-1/ajax.php
      Line Number 46, Column 3:
      ajax.php:46:3
      back tab addListener: restorebar content_script.js:128:4
      XML Parsing Error: no root element found
      Location: file:///c:/xampplite/htdocs/CRUD-Step-1/ajax.php
      Line Number 46, Column 3:
      Line 46 is at the ?> of the ajax.php
      Here is my path setup:
      C:\xampplite\htdocs\CRUD-Step-1/index.html
      C:\xampplite\htdocs\CRUD-Step-1/ajax.php
      It seems CRUD-Step-1/ajax.php cannot find the mySQL database.
      Here is the path to mySQL folder:
      C:\xampplite\mysql\bin
      NOTE:
      The xampplite has been implemented using the DesktopServer (serverpress.com). This allows WordPress Development in your localhost. I don't want to install another xampp-lite or xampp. I am using Windows 10 latest update....

    • @Mrodmal
      @Mrodmal 6 лет назад

      I got this error
      html.html:68 Uncaught TypeError: $.ajax is not a function

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Mrodmal have you included jQuery library?

    • @Pajaro95076
      @Pajaro95076 6 лет назад

      Aloha Senaid, have you tried accessing access your code using Google Chrome browser instead of Ubuntu lately. I understand Google changed their browsers. This Utube was done last August 2017. You need to verify your code to see if it works!!!

  • @rodrigoramos6479
    @rodrigoramos6479 7 лет назад

    Friend, thanks for these videos that are very good, a query please, I am new to this programming class and everything goes well however between the boxes that my form has I have a select that is related to another table that is in my base data and I do not know how to recover or show the data of that select.
    I explain myself better I have two tables:
    User with the fields: id, nombre, apellido, país_id(foreign key)
    Pais with the fields: id, nombre
    The problem is that I do not know how to display the name of the country that has a user in the user's edit window.
    Thanks for the help

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Sorry man, but I really don't understand what is the problem. Any pictures?

    • @rodrigoramos6479
      @rodrigoramos6479 7 лет назад

      Thanks for replying friend, what I do not understand is how I can show by means of a select the data that another table can have, in this case the pais table and thus be able to modify the value that the pais_id field of the user table may have. Once again thank you for your response

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      Have you watched part2 of this series?

    • @rodrigoramos6479
      @rodrigoramos6479 7 лет назад

      Yes, but since I am new to this programming class, I do not understand very well. :(
      sorry but now if you understand my doubt?

    • @SenaidBacinovic
      @SenaidBacinovic  7 лет назад

      When someone selects the data, in that select, you will have their pais_id and then from the PHP side all you need to do is to update users table WHERE pais_id = selected pais_id. Get it?

  • @jcvasconcelos_
    @jcvasconcelos_ 6 лет назад

    JUN/24 almost JUL/2018 and the e-mail with code was sent correctly and hyper fast into my InBox. BUUUUUUT the code isn't opening or downloading..
    Anyway, can you send me the codes? I'm running against the time... Thank you, Senaid,

  • @abidimarwen8351
    @abidimarwen8351 6 лет назад

    Can you please refactor the code to the MVC model that will be great. Thank you.

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Yup, I might create a new series to show how to do it.

  • @marvincaldea5925
    @marvincaldea5925 6 лет назад

    do you have tutorial about uploading image .?.

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      I do have two different tutorials for files uploading (image included):
      - ruclips.net/video/M8mLkeP7rB4/видео.html
      - ruclips.net/video/O4MDyzhSY7Y/видео.html

    • @marvincaldea5925
      @marvincaldea5925 6 лет назад

      Thanks alot

    • @marvincaldea5925
      @marvincaldea5925 6 лет назад

      Sir why we need to refresh the browser to get the data?

    • @marvincaldea5925
      @marvincaldea5925 6 лет назад

      Can we get the data right after clicking save or save changes?

  • @soumyaappugouda4676
    @soumyaappugouda4676 6 лет назад

    Hii Senaid, I have downloaded source code i din't get it. Please check once.

  • @lukakljajevic2199
    @lukakljajevic2199 6 лет назад

    I tried downloading the source code, but nothing happened. I didn't recieve any emails. Is there another way to download the source code?

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Hmm, that's weird. Can you please just reply to the email without source code and I will send it to you?

  • @thanatchapornkanlaya7176
    @thanatchapornkanlaya7176 6 лет назад +1

    thank you

  • @thomaswahahauw560
    @thomaswahahauw560 6 лет назад

    i didnt get any results on my page after all the code i think somethink went wrong with the part getExistinData ?
    do you maybe now what i possible did wrong?
    #youtheman

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Can you show me the code or maybe download the source code and compare it?

  • @mohamudosmanhamud9289
    @mohamudosmanhamud9289 6 лет назад

    Amazing Series Videos i have A problem if i want to update input type="file" is not acceptable and the console input error like this :
    Uncaught DOMException: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.
    at HTMLInputElement.
    i want to update file please help me what i can do if i want to update uploaded file .

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад +1

      Mohamoud Osman Hamud Thank you. How do you want to update it?

    • @mohamudosmanhamud9289
      @mohamudosmanhamud9289 6 лет назад

      Coding Passive Income I want to Update Form That include Files and Options when I try To apply your Idea to this Form I faced problem that I can sended early So Can you give me any idea or even Make Tutorial of Like Form Al so my form Has dependent Selected Options. Thansk for your time and your quick Replies.

  • @pheak7ra
    @pheak7ra 6 лет назад +1

    Modal javascript does not work

  • @nabilfikri6984
    @nabilfikri6984 6 лет назад

    can i get that code ?? i always get error at ajax.php

  • @shreyarusia519
    @shreyarusia519 6 лет назад

    I m getting infinity times data in a table..... plz help me to resolve this problem .....

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Did you check what is different in your code then in my?

    • @shreyarusia519
      @shreyarusia519 6 лет назад

      there is no difference b/w yours n mine code

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Hmm, it must be. Did you try to download the source code and compare it?

    • @ianangelomusic47
      @ianangelomusic47 4 года назад

      Hello! I'm getting the same problem. I think it is from the getExistingData function. It keeps getting called infinitely and displays ReachedMax after it displayed all the data. What seems to be the problem?
      Ps: i removed the add new button so. the problem might be connected to it. But idk where and how 😓
      Pps: great teacher though! Thanks

  • @vladaboskovic4916
    @vladaboskovic4916 6 лет назад

    why i can't download this code ?

  • @jaaferanssem820
    @jaaferanssem820 4 года назад

    good evening please can you send to me the source code because i have errors in my source code

    • @SenaidBacinovic
      @SenaidBacinovic  4 года назад

      Just download it from my website, you have the link in the video description.

  • @valentinknoll4106
    @valentinknoll4106 4 года назад +1

    👍

  • @mdstudio8139
    @mdstudio8139 5 лет назад

    Why is this creating an infinite loop on my example ? :( Anyone else ?

    • @ianangelomusic47
      @ianangelomusic47 4 года назад

      Megatron Ultra Brutal Destroyer same. Did you find any solution?

  • @AzharAli-cz7ok
    @AzharAli-cz7ok 5 лет назад +2

    hahhahaha nice voice :D

  • @osamaal-shaibani4965
    @osamaal-shaibani4965 6 лет назад +1

    Thank you

  • @nabilfikri6984
    @nabilfikri6984 6 лет назад

    why i can't download this code ?

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      What is the problem?

    • @nabilfikri6984
      @nabilfikri6984 6 лет назад

      Coding Passive Income when i press addNew the tableManager didnt show up

    • @SenaidBacinovic
      @SenaidBacinovic  6 лет назад

      Hmm, ok. But what that problem has to do with the problem stated above?
      Probably you didn't set up properly addNew button. Please check how I did it in the video.