PHP MySQL Tutorial: Create a Simple View Counter -HD-

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
25,031
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 7, 2010

In this tutorial, you will learn how to create a simple view counter with PHP and MySQL.

Be sure to SUBSCRIBE because there will be a new tutorial every week.

Follow me on Twitter @RiverCityGraphx

Like us on on facebook: http://on.fb.me/i8UQpt

Suggest tutorials at http://www.rivercitygraphix.com

For project files, help forums, and more check out the website at http://www.rivercitygraphix.com

For business related inquires contact us at rivercitygraphix@yahoo.com

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (RiverCityGraphix)

  • what kind of web developer uses IE ??? what a joke :D but a great tut

  • @justTVsk Web developers should use all major browsers to ensure their content looks right on each of them.

  • i dont have dreamweaver do u buy it?

  • @RealityFuzion Yes, you can buy it from Adobe.

  • Im having trouble. Ive typed in all the code correctly using Dw and the counter is obviously working because everytime I refresh the page the views on my viewcounter database on myphpadmin increase by 1. However, when I try and open the webpage with firefox it ignores all of the php code and just displays the html, ie. "There are views on the page".. Any ideas what Im doing wrong? thx.

  • @mattz084 You need to first make sure you are printing out the variables correctly. If all of that checks out your problem might be that you are not using a local server like XXAMP. You will not be able to view the php of a file without either using XXAMP or uploading to a web server. I have a tutorial that shows you how to set everything up if this is the problem. If you are using XAMPP then make sure apache is turned on.

Top Comments

  • mysql_fetch_array() expects parameter 1 to be resource

see all

All Comments (54)

Sign In or Sign Up now to post a comment!
  • @vanko1997 you need to put ?> to stop that .

    so basically it starts with <?php needs to end with <?

  • @glonich $sql = mysql_query(" SELECT * FROM visitas WHERE id ='1' ") or die(mysql_error());

    It is the solution.

  • Awesome Tutorial! Thanks a lot, very helpful. Easy to understand, and you talk quick. Right too the point. I like that.

    Keep up the great work!

  • Hi, I followed your tutorials. Now I have my own database at my localhost. But, I have a problem how can i publish it with my database on it. so that, Through a Internet connection. My only problem is to create a web server with a database on it. Hope you can help me. I'm really at my shortest time for the project . Please Help me asap. More power

  • @justTVsk all web developers use IE fyi...

  • How can I add more than one to my webpage

  • Parse error: syntax error, unexpected ';' in C:\xampp\htdocs\simplecounter.­php on line 8 need help please

  • I find your tutorials to be extremely useful. Thank you very much. Couldn't just get better than this.

  • Loading comment...
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more