PHP MySQL Tutorial: Create a Simple View Counter -HD-
Uploader Comments (RiverCityGraphix)
Top Comments
-
mysql_fetch_array() expects parameter 1 to be resource
All Comments (54)
-
@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...
what kind of web developer uses IE ??? what a joke :D but a great tut
justTVsk 7 months ago
@justTVsk Web developers should use all major browsers to ensure their content looks right on each of them.
RiverCityGraphix 7 months ago 14
i dont have dreamweaver do u buy it?
RealityFuzion 8 months ago
@RealityFuzion Yes, you can buy it from Adobe.
RiverCityGraphix 8 months ago
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 1 year ago
@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.
RiverCityGraphix 1 year ago