It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

code on how to see how many times an image has been viewed.

code on how to see how many times an image has been viewed.

Postby chubzyko on Thu Jul 31, 2008 10:33 pm

haiya guys, some forums have this feauture, there are some images in a page and below it, there is a text showing how many times the image had been viewed. is that code still i html, or js?

if someone know how to do it, can you help me plz? :D
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby flabbyrabbit on Fri Aug 01, 2008 12:45 pm

I think that would be achieved using PHP and MySQL. Where MySQL is a database and it holds a record for each image and every time the image is viewed the PHP updates the record.

If you would like more detail on how this is done dont hesitate to ask,
Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby chubzyko on Fri Aug 01, 2008 5:24 pm

well, there is actually lots of features i want my website to have. haha! But the prob is, I don't know how to code it. Like making a comment box, I can't understand how to do those tutorials. But i've found a zip file of somethng like guess comment box. All I need to do is just save it in the ftp where my html's are saved. Anyway, back to the image viewed times, I tried to google on how to do it but i didnt find an easy tut. as what you have said, i can do it in php and mysql right? I dont know much about mysql actually. I guess you can explain it to me. :D
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby flabbyrabbit on Fri Aug 01, 2008 6:26 pm

Have you got MSN?

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby chubzyko on Fri Aug 01, 2008 6:48 pm

Uh oh. Sorry I can't chat during office hours.
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby flabbyrabbit on Fri Aug 01, 2008 6:51 pm

Umm ok, ill write you some quick information on it tomorrow then, see if that helps you.

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby chubzyko on Fri Aug 01, 2008 6:52 pm

Geee, Tnx!
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby chubzyko on Fri Aug 01, 2008 9:25 pm

Haiya! I just found some good tuts in making a comment box, and a pageview counter. I guess i'm going to study on how to do those things first. Harhar!
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Postby flabbyrabbit on Fri Aug 01, 2008 9:41 pm

Ok, it should be quite easy if you find yourself a good tutorial.

I need to write some stuff up to add to the scripts section as these sorts of questions crop up quite often.

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England


Who is online

Users browsing this forum: No registered users and 7 guests