Like Dislike system with PHP and MySQL

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024
  • This system works exactly like the Like/Dislike system TH-cam implements for its videos. On TH-cam, the buttons are placed on videos. Since we are not building the next TH-cam, we will stick with using simple posts where users can click on their associated like and dislike buttons.

ความคิดเห็น • 62

  • @iwanwilaga
    @iwanwilaga 4 ปีที่แล้ว +1

    Amazing clarity. You probably maxed this out Bro.. It's so nice to see a new version of this demonstration in every 1-2 years from you. Respect, W

  • @shraddhadodiya007
    @shraddhadodiya007 2 ปีที่แล้ว +1

    Very much use full video, sirji...thankyou so much sir..for this clarity and for source code🙏

  • @TheSuperhans49
    @TheSuperhans49 5 ปีที่แล้ว +2

    Good job - it does take a short moment to apply the like after clicking on it - but it works good, thank you!

  • @vusisibiya7527
    @vusisibiya7527 5 ปีที่แล้ว +1

    Your tutorials are always on point. Thanks a million!

  • @user062
    @user062 2 ปีที่แล้ว +1

    For everyone saying it doesn't work:
    1. make sure you have set $user_id somehow
    2. in the SQL statements put ' ' around the variables (variable = $...)

  • @filkoff
    @filkoff 3 ปีที่แล้ว +1

    Thank you! A very nice tutorial with quite an elegant code. It's such a pity the video is mute.

  • @vhShi
    @vhShi 5 ปีที่แล้ว

    at last i found your video... the only video that help me a lot

  • @mackynikat8833
    @mackynikat8833 3 ปีที่แล้ว

    It's the foreach. For sure it's the reason why I can only like once using the same user in all of the comments

  • @paulomagalhaes6752
    @paulomagalhaes6752 5 ปีที่แล้ว +3

    Este agora e o que eu queria........ obrigado....

  • @fwilawboro
    @fwilawboro 2 ปีที่แล้ว

    JSON.parse() error shows unexpected character at line 1 column 1 of JSON data ??

  • @alisamie97
    @alisamie97 3 ปีที่แล้ว

    thanks a lot for this video. but plz do a voice over your work for future tutorials. i had a hard time understanding it for the first time. i've been watching it for the last 4 days

  • @animatedmovies6199
    @animatedmovies6199 2 ปีที่แล้ว

    uhm pls whenever i click on the like button and then on the dislike button the like button remains the same, i have checked every thing and it doesn't show any error, pls can you tell me where to check, thanks

  • @hponekhant3397
    @hponekhant3397 2 ปีที่แล้ว

    Like dislike buttons not working. How can I fix that?

  • @ranishkumar8398
    @ranishkumar8398 หลายเดือนก่อน

    If anyone has multiple comments and from comments, if it has numerous replies then the rating_info table has to include more columns.

  • @smartmob4568
    @smartmob4568 5 ปีที่แล้ว

    thank you very much very useful

  • @DanteAllighieri
    @DanteAllighieri 4 ปีที่แล้ว

    Awa, you have an awesome content you win a sub, go on with the great work.

  • @kevenescovedo6585
    @kevenescovedo6585 4 ปีที่แล้ว +2

    thank you so much bro helped me a lot, good video and best
    teaching, sorry my english hahaha

    • @hazirahmusa2840
      @hazirahmusa2840 3 ปีที่แล้ว

      hi can you help me? i dont know why my code doesn't show the thumbs up & down icon

    • @kevenescovedo6585
      @kevenescovedo6585 3 ปีที่แล้ว

      @@hazirahmusa2840 yes I can, see if the path in which you call the icon corresponds to the icon folder, if you don't resolve it call me here we will try to resolve it

    • @hazirahmusa2840
      @hazirahmusa2840 3 ปีที่แล้ว

      @@kevenescovedo6585 so far i can see the icon, but it doesn't show any action when i clicked it..

    • @kevenescovedo6585
      @kevenescovedo6585 3 ปีที่แล้ว

      @@hazirahmusa2840 sometimes javascript was not even called, to see this try to alert and appear and why it was called

    • @kevenescovedo6585
      @kevenescovedo6585 3 ปีที่แล้ว

      @@hazirahmusa2840 the action function of like and unlike in the javascript file is the same as the video in minute 14:28? do you have github ?, could you give me this code for me to see?

  • @trimarts8778
    @trimarts8778 4 ปีที่แล้ว +1

    THANKS for your tutorials. Next time can you make tutorials in PDO not mysqli or mysql :) I wasted few hours to read about PDO and to convert to PDO.

  • @arminekhachatryan7531
    @arminekhachatryan7531 2 ปีที่แล้ว +1

    This code dosnt work

  • @ephraimalhamdu
    @ephraimalhamdu 3 ปีที่แล้ว

    Great Content Awa. thank God i found someone with a Nigerian assent like myself lol... Indians are difficult to understand sometimes... PLEASE I HAVE A REQUEST CAN YOU MAKE A PHP MYSQL ECOMMERCE APP WITH REMITTA OR PAYSTACK CHECKOUT | CHART | ???

  • @banglaknowledge180
    @banglaknowledge180 5 ปีที่แล้ว

    Fatal error: Call to undefined function mysqli_fetch_all() in /home1/softskvd/public_html/like/server.php on line 119
    But Why?

  • @wassimjhinaoui3070
    @wassimjhinaoui3070 3 ปีที่แล้ว

    the data returned is not jason how could i fix that??

  • @belkYT
    @belkYT 2 ปีที่แล้ว

    How to do it on web?

  • @hejun56
    @hejun56 3 ปีที่แล้ว

    veryyyyyy gooooood

  • @SOTheEncourager
    @SOTheEncourager 6 ปีที่แล้ว

    Good job on this!!!!

  • @mackynikat8833
    @mackynikat8833 3 ปีที่แล้ว

    . this code doesn't work for me . tried to debug this but the result is the same , i can't have two users on the same post id . but this one is still useful though , on this vid learned how to use data-id attr that will help me a lot

  • @kuangsoo
    @kuangsoo 5 ปีที่แล้ว +1

    mine have unexpected token error at JSON part. Does anyone face the similar problem before and already find a solution pls help me

    • @kuangsoo
      @kuangsoo 5 ปีที่แล้ว

      Although I have the error but after refresh the page, the rating still can be shown in the webpage and store in the database

    • @amanagarwal7256
      @amanagarwal7256 4 ปีที่แล้ว

      Use stringyfy instead of parse

  • @alisuatpiskin6445
    @alisuatpiskin6445 2 ปีที่แล้ว

    If code give you "Unexpected token < in JSON at position 0" error change "JSON.parge" with "JSON.stringify"

  • @belkYT
    @belkYT 2 ปีที่แล้ว

    wheres MySQL?

  • @dharmeshpanchal4864
    @dharmeshpanchal4864 6 ปีที่แล้ว

    Well done

  • @hafshaislam4800
    @hafshaislam4800 5 ปีที่แล้ว

    I am not able to download source code.

  • @yourdailyciao8251
    @yourdailyciao8251 2 ปีที่แล้ว

    same counter on all device

  • @j4vlon
    @j4vlon 4 ปีที่แล้ว

    good job man

  • @reverie2392
    @reverie2392 3 ปีที่แล้ว

    best tutorial. subscribe your channel thank you

  • @localhosterasmr2370
    @localhosterasmr2370 4 ปีที่แล้ว

    2x speed with some music is better

  • @zeezeekass4216
    @zeezeekass4216 6 ปีที่แล้ว

    your tutorials are very helpful :).. can you make a tutorial on how to make a Forum?

  • @reybasilio6075
    @reybasilio6075 6 ปีที่แล้ว +2

    Please create FILTER.

    • @AwaMelvine
      @AwaMelvine  6 ปีที่แล้ว

      Hey Rey Basilio, Thanks for watching! what kind of filter are you referring to? Can you please elaborate?

    • @reybasilio6075
      @reybasilio6075 6 ปีที่แล้ว

      Using Option button. Example in school. When i choose IT, all the students of IT only will display in the form.

    • @reybasilio6075
      @reybasilio6075 6 ปีที่แล้ว

      Ahh. I think it was a JQuery Filter? Using option button.

  • @fusegamer4495
    @fusegamer4495 4 ปีที่แล้ว

    Doesn't work anymore!!!

  • @mackynikat8833
    @mackynikat8833 3 ปีที่แล้ว

    ahaha. I'm not having any inserted data on my database whenever I clicked the like button

    • @mackynikat8833
      @mackynikat8833 3 ปีที่แล้ว

      . yes but the whole code for me seems doesn't work . if your asking how did i done it just check your jquery syntax , the brackets, y spelling of the of statements . he's code is working until the loop

    • @mackynikat8833
      @mackynikat8833 3 ปีที่แล้ว

      @Clash Guy in mine the situation was about users liking the same comment . for sure it's inside the loop . you can also try if your havind bad creating each function on each comment section to insert on database . that's what i did

  • @TheSuperhans49
    @TheSuperhans49 5 ปีที่แล้ว

    Great script, thanks - but i can only like it once even if i like it from another device like from my mobilephone.