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

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 163

  • @MrPherez
    @MrPherez 5 років тому +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.

  • @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.

    • @SenaidBacinovic
      @SenaidBacinovic  7 років тому

      Thank you so much! Appreciate the support. :)

  • @parkhongjoon
    @parkhongjoon 6 років тому +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.

  • @lemuelflorescantillo3053
    @lemuelflorescantillo3053 5 років тому +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!

  • @shbita
    @shbita 5 років тому +1

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

  • @gianluca_ruggieri
    @gianluca_ruggieri 7 років тому +1

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

  • @loebys
    @loebys 4 роки тому +1

    nice video, simple method, easy to understand

  • @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 :)

  • @shemafayzo178
    @shemafayzo178 5 років тому +1

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

  • @31seira
    @31seira 5 років тому +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  5 років тому

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

  • @jeffersonsarmiento700
    @jeffersonsarmiento700 5 років тому +1

    Great tutorial. 😊

  • @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

  • @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  5 років тому

      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.

  • @MarijanKopcic
    @MarijanKopcic 5 років тому +1

    Svaka čast :)

  • @tarekhusam
    @tarekhusam 6 років тому

    The best! Keep it bro ❤️

  • @tiparess17
    @tiparess17 4 роки тому +1

    Make a tutorial for datatables server side processing

  • @christianpaulaltares9187
    @christianpaulaltares9187 6 років тому +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  6 років тому

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

  • @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

  • @joelparreno10
    @joelparreno10 6 років тому +3

    a big guy with a small voice thanks!

  • @thanatchapornkanlaya7176
    @thanatchapornkanlaya7176 6 років тому +1

    thank you

  • @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 5 років тому

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

  • @realnigga6903
    @realnigga6903 6 років тому +1

    I Hope you will build a Complete Online Shoppping System next sir :-)

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      For sure, a lot of people requested that one, so I will record it soon. :)

  • @egilartboy
    @egilartboy 6 років тому +1

    Thank you very much.....

  • @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

  • @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

  • @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.

  • @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

  • @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

  • @valentinknoll4106
    @valentinknoll4106 4 роки тому +1

    👍

  • @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.

  • @gushung0
    @gushung0 6 років тому +1

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

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Can you show the code where you experience that problem?

  • @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?

  • @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

  • @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

  • @AzharAli-cz7ok
    @AzharAli-cz7ok 5 років тому +2

    hahhahaha nice voice :D

  • @muhammadtaifkhan4359
    @muhammadtaifkhan4359 5 років тому

    Please make this video with just vanilla JavaScript. Thanks

  • @peterkachezi8107
    @peterkachezi8107 4 роки тому

    Brother can u do Dot Net MVC C#

  • @abigailliguma4196
    @abigailliguma4196 4 роки тому

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

  • @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?

  • @marvincaldea5925
    @marvincaldea5925 6 років тому

    can you make the datatable auto load after crud data ?

  • @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..... :)

  • @MultiPheaktra
    @MultiPheaktra 6 років тому +1

    Modal javascript does not work

  • @flordelizatordera3601
    @flordelizatordera3601 6 років тому

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

  • @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));
      }
      ===============

  • @patrickemerysevor7410
    @patrickemerysevor7410 3 роки тому

    please why aren't you doing video again?

  • @breadpit
    @breadpit 6 років тому +1

    Source Code link not work

  • @aceimd1395
    @aceimd1395 6 років тому

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

  • @rodrigoramos6479
    @rodrigoramos6479 6 років тому

    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  6 років тому

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

    • @rodrigoramos6479
      @rodrigoramos6479 6 років тому

      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  6 років тому

      Have you watched part2 of this series?

    • @rodrigoramos6479
      @rodrigoramos6479 6 років тому

      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  6 років тому

      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?

  • @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.

  • @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.

  • @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?

  • @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 6 років тому

      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 6 років тому

      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 6 років тому +1

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

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      Amazing, glad you made 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,

  • @marvincaldea5925
    @marvincaldea5925 6 років тому

    do you have tutorial about uploading image .?.

    • @SenaidBacinovic
      @SenaidBacinovic  6 років тому

      I do have two different tutorials for files uploading (image included):
      - ua-cam.com/video/M8mLkeP7rB4/v-deo.html
      - ua-cam.com/video/O4MDyzhSY7Y/v-deo.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?

  • @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!!!

  • @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?

  • @soumyaappugouda4676
    @soumyaappugouda4676 6 років тому

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

  • @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?

  • @luckyandroid3568
    @luckyandroid3568 5 років тому

    Is there is using MySQL Sir?

  • @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.

  • @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 ?

  • @mdstudio8139
    @mdstudio8139 4 роки тому

    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?

  • @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.