Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Member system with a twist.
Old 08-02-2008, 12:11 PM Member system with a twist.
Junior Talker

Posts: 3
Trades: 0
So yeah, just to start things out, im not asking for you to write the code for me. Im kinda new to php as a language, so im not quite sure on how to approach this. Now, I need to code a very basic user system in php for a site im making. The twist is, I want to have a sort of vote system. Basically, I need it to be so that this system will keep track of how many times a person has clicked a link. I figure if I can manage that I can add anything from there. I figure itll just be an extra column in the mysql table for that or soemthing of the sort. Anyone want to help me break this down?
elkodust is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-02-2008, 12:35 PM Re: Member system with a twist.
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
If the link leads to a page on your site, you could just do an update of the count when they reach the page. You could do that with just PHP. However, if you want to track when they actually click on the link, you'll need to use JavaScript in an Ajax manner to detect the onclick event and then send it to a PHP script to update the count.
__________________
Want new web resources every day? - Follow me on
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 08-02-2008, 12:55 PM Re: Member system with a twist.
Junior Talker

Posts: 3
Trades: 0
Quote:
Originally Posted by VirtuosiMedia View Post
If the link leads to a page on your site, you could just do an update of the count when they reach the page. You could do that with just PHP. However, if you want to track when they actually click on the link, you'll need to use JavaScript in an Ajax manner to detect the onclick event and then send it to a PHP script to update the count.
Ah, good, I know java. Woo, this might not be all that bad, thanks alot for the advice.
elkodust is offline
Reply With Quote
View Public Profile
 
Old 08-02-2008, 01:05 PM Re: Member system with a twist.
Super Talker

Posts: 116
Trades: 0
just so you know, javascript is NOT the same as java.
__________________


Please login or register to view this content. Registration is FREE

nasaboy007 is offline
Reply With Quote
View Public Profile Visit nasaboy007's homepage!
 
Old 08-02-2008, 01:30 PM Re: Member system with a twist.
Junior Talker

Posts: 3
Trades: 0
Quote:
Originally Posted by nasaboy007 View Post
just so you know, javascript is NOT the same as java.

Oh boy, i just made myself look like an ***. Point noted.
elkodust is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Member system with a twist.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21220 seconds with 12 queries