Create a PHP Like Button

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

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

  • @osama6795
    @osama6795 4 года назад +4

    thank you so much man, you helped me create a favorite button for my website. you explained everything so well, god we need more people like you. you earned my respect and admiration!

  • @ArnoldsKtm
    @ArnoldsKtm 10 лет назад +6

    "some idiots would do this" - hahaa! Good one, Alex!

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

    Hi I have this error when running the code Fatal error: Call to a member function fetch_object() on boolean please help

  • @kingsjgaming2662
    @kingsjgaming2662 3 года назад +1

    there is a problem,
    every time I click on the like button it is re-loading the whole page.
    which is taking me back to the top of the page. :-(

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

      Did u get any solution of it plz tell i m in same prblm??

  • @isaac9889
    @isaac9889 8 лет назад

    Hi! Good tutorial!
    I have just one question... I don't know why when i put this line of code "$row->liked_by = $row->liked_by ? explode('|', $row->liked_by) : [];" the whole program stop working, it sends me the next error message "Parse error: syntax error, unexpected '[' in /home/canifarm/public_html/Noticias/Principal/Likes/index.php on line 24"
    I've looked for that error but i can´t find the answer, could you help me?

  • @ottawadigs
    @ottawadigs 9 лет назад

    question - in your insert into articles_likes code (in like.php), how would you structure the INSERT statement if you had more variables to save? I want to save the date and time. After LIMIT 1 I added a comma and NOW() to get the date/time but it doesn't add the vote or date/time. If I remove it then it works.

  • @highdownhybrid
    @highdownhybrid 10 лет назад

    I've got a problem using the SQL statement in like.php with PDO (prepare() and bindValue()). Could you give any advice on this? Do these {brackets} play any role in the SELECT statement?

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

    My code is not working...its allowing d same user to like d same post multiple times..i hv also checked it inserts multiple records in d DB for when the same user likes d same post...how do i correct this?
    please help...
    thanks

  • @anajuarez488
    @anajuarez488 2 года назад

    que idolo muchisimas gracias!! me cuesta el english jajaj pero lo pude hacer.. muy buen videoo🤗🤗🤗🤗🤗

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

    Hi #Codesource, how to i echo image instead of article title if i already stored images in database in blob form?

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

    You probably won't respond since this video is 2 years old but how did u add the motion blur to your mouse cursor when recording this ?

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

    im having a problem when i try to get the number of likes that are on post the query gives false it is from the count i dont know why

  • @flushyoudowntheloo
    @flushyoudowntheloo 9 лет назад +2

    Can you make an 'unlike' tutorial stemming from this one?

  • @Ninjaphil24
    @Ninjaphil24 2 года назад

    Truly exceptional!

  • @MehulKumar_m3huL
    @MehulKumar_m3huL 9 лет назад +1

    I liked this video just because your mysql practice. Would you make a video for best mysql practices? :]

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

    Can anyone show me how to make these tables used in this video through the command line?

  • @josephaniversario1277
    @josephaniversario1277 10 лет назад

    what if i want the user not to be assigned?
    $_SESSION['user_id'] = (int)1;
    what i mean is if i have a login page and i want the userd id of the logged in person to be the one being processed instead of the (int)1?? HELP PLEASE

    • @discoboy1500
      @discoboy1500 8 лет назад

      +joseph aniversario Umm.... That will happen in the login page as you check for the username and pass and if you do have a match in your database then you literally write $_SESSION['user_id'] = ( The id from the database) you can find out more on codecourse 's registration tutorial

  • @ArnoldsKtm
    @ArnoldsKtm 10 лет назад

    Even more and more awesome! I've been programming for two years maybe, but that query really confused me!
    Can you create dynamic favicon that shows if you have new message? And show the count of them. I know how to add string to image, but i have no idea how to add background to that string.

  • @dvorapat
    @dvorapat 10 лет назад +3

    This is really cool! Maybe there should be something like _"Liked!"_ after you've liked the article, but that's just a detail :-) Thanks for the tutorial! ,-))
    Btw. 2:22 _"...because obviously some idiots might try to do this"_ bhahaha!

    • @Djangokillen
      @Djangokillen 10 лет назад +2

      Instead of "liked" it could be "unlike" :)

    • @Djangokillen
      @Djangokillen 10 лет назад

      Djangokillen But that's out of this tutorial, I think he just wanted to focus on the like thing.

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

    Can you make this with unlike system?

  • @unschuld
    @unschuld Год назад

    how can i delete my like?

  • @aplexw
    @aplexw 10 лет назад

    Thanks Alex , it works for me .
    Can you please create another video for an unlike method if an user wants to unlike an article if he changes his mind or does`nt like it any more ?
    And it will be perfect to have a max limit of displayed users that liked an article

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

    Hi Codecourse, please can you make a video on creating a twitter follow system using PHP?

  • @KerByGaming971
    @KerByGaming971 8 лет назад

    He works with the ip of the users or by creating a session user ??

  • @ToXiiiiCTV
    @ToXiiiiCTV 10 лет назад +1

    It could be via js/jquery to update without sending a get / post request

    • @codecourse
      @codecourse  10 лет назад

      Thanks, I've noted down to create a video with this.

    • @ronnydark3r
      @ronnydark3r 9 лет назад

      +Codecourse can you give me a link if you maked it?

  • @officialbithumor5003
    @officialbithumor5003 9 лет назад +1

    Is there anyway I can download the php code for this?

    • @CzajekTutorialowiec
      @CzajekTutorialowiec 8 лет назад

      +Official BitHumor
      www.codecourse.com/library/lessons/create-a-php-like-button/create-a-php-like-button

  • @subaro98
    @subaro98 9 лет назад +1

    From were I can download the ready files?

    • @CzajekTutorialowiec
      @CzajekTutorialowiec 8 лет назад

      +Yoan Burski
      www.codecourse.com/library/lessons/create-a-php-like-button/create-a-php-like-button

  • @_Mackan
    @_Mackan 10 лет назад

    Hey alex, can you do a tutorial on bootstrap maybe? Great vid as always, going to use this for my image sharing project!0

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

    link to download please?

  • @omarabuelyazeed6966
    @omarabuelyazeed6966 10 лет назад

    The query is a riddle o me!

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

    Can we do this using jquery

  • @codecourse
    @codecourse  10 лет назад +6

    Create a PHP Like Button

    • @FutureBanger
      @FutureBanger 8 лет назад +1

      what program do you use for database?

    • @CzajekTutorialowiec
      @CzajekTutorialowiec 8 лет назад +1

      +Future Banger - Future House
      It's Sequel Pro available only on Mac OS X.

  • @muhamadrifkirahmadi1809
    @muhamadrifkirahmadi1809 2 года назад

    Ada orang Indonesia kah?

  • @lucasgabule
    @lucasgabule 8 лет назад

    Thanks man :D

  • @JayeAesthetic
    @JayeAesthetic 10 лет назад

    Awesome video!

  • @boyteddy1247
    @boyteddy1247 10 лет назад

    Which database did you use?

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

    alex, please create a laravel e-commerce playlist

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

    Great!!!!

  • @TheBenSanders
    @TheBenSanders 10 лет назад

    Man.. that was fun! xD

    • @codecourse
      @codecourse  10 лет назад

      Woo! Glad you found it so :)

  • @grigorischaram3216
    @grigorischaram3216 10 лет назад

    this application without session and ip address it's non userful

    • @codecourse
      @codecourse  10 лет назад +1

      grigorios charam The session ID is there so it can be implemented into an existing authentication system. Building an authentication system just to demonstrate a like button would be a waste of your time :)

  • @22MrLyricmaster22
    @22MrLyricmaster22 10 лет назад +1

    Could you please make a "How to install and use Glyphicons"?
    Cause this is what everyone has now a day!
    Please like, so he gonna see it?

    • @codecourse
      @codecourse  10 лет назад

      Thanks for the suggestion - this is actually already on our roadmap!

    • @22MrLyricmaster22
      @22MrLyricmaster22 10 лет назад

      Yeah! Thanks alot, mate! I seriously love you/your tutorial channel! =) #NoHomo

    • @22MrLyricmaster22
      @22MrLyricmaster22 10 лет назад +1

      I need a good coder to my website, would you be interested to help me? Of course you will get some money, for it! :)

    • @raymonddeloso62
      @raymonddeloso62 10 лет назад

      ***** im looking forward too. :)

  • @ialimijororakotoniaina3274
    @ialimijororakotoniaina3274 10 лет назад

    Awesome,very good (y)