So i want to have page view on my php pages and googled this... i dont want to make a new database for it so ive found a available spot in my database (so cant use any solutions that requires more than 1 cell in the database.
I got this code wich counts the visit so that part works fine, but i cant seem to make the number of views to be shown (printed i guess its the right word)
<?php //Adds one to the counter
mysql_query("UPDATE news SET post = post + 1, published=published, last_edit=last_edit WHERE id=$id");
//Retreives the current count
$count1 = mysql_fetch_row(mysql_query("SELECT post FROM post"));
// Displays the count on your site print
echo $count1; ?>
Any idea why i wont get the result to show?