USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 4/17/06 06:56 AM
Sign-Up: 02/27/06
Posts: 480
For the tut, see here: http://www.thesmurk...?page=vtut&id=47
Sorry about having to link.
Posted at: 4/17/06 07:08 AM
Sign-Up: 06/25/05
Posts: 16,128
Thankyou thankyou thankyou thankyou <3
I have been looking for a good tutorial on this <3 this will really help me, thankyou so much, and good tutorial.
I make websites. Find all threads by a user, Top Newgrounds BBS posters, Newgrounds account ID, Link to specific posts and whatever else I have listed at m00d.net
Posted at: 4/17/06 07:15 AM
That's ok. I was looking for one like this for ages, which is I learnt PHP, and wrote it.
:-D
Posted at: 4/17/06 11:11 AM
Sign-Up: 09/13/03
Posts: 12,274
lol This cat asked me for help on this tutorial making process. Anyway, why would you use a database for such small things like this? A txt file would really be all you need.
Posted at: 4/17/06 12:16 PM
Sign-Up: 11/28/05
Posts: 3,758
At 4/17/06 11:11 AM, Pilot-Doofy wrote: lol This cat asked me for help on this tutorial making process. Anyway, why would you use a database for such small things like this? A txt file would really be all you need.
However you are right, I am saving it the DB as well.
But my script is ALOT smaller, and, because of it, faster.
Recruiting Grounds | BBCode Parser | PHP: Main
Posted at: 4/17/06 12:26 PM
Well, mostly because I wanted to practice my SQl.
:D
Posted at: 4/17/06 12:32 PM
At 4/17/06 12:26 PM, Rellizate wrote: At 4/17/06 11:11 AM, Pilot-Doofy wrote: lol This cat asked me for help on this tutorial making process. Anyway, why would you use a database for such small things like this? A txt file would really be all you need.Well, mostly because I wanted to practice my SQl. D
D
You want me post mine version? If you want to I'll do it.
Posted at: 4/17/06 12:35 PM
No thanks. I know yours will be better, so there is no point...
xD
Posted at: 4/17/06 12:44 PM
At 4/17/06 12:35 PM, Rellizate wrote: No thanks. I know yours will be better, so there is no point... xD
Ok...but it is like: 1) GET IP 2) Check if the same one already in the db 3) if no, insert it 4) else do nothing (but there's no actually part like else {} )
Posted at: 4/17/06 12:45 PM
That's exactly what mine does.
Posted at: 4/17/06 01:49 PM
Sign-Up: 09/07/03
Posts: 12,503
At 4/17/06 12:26 PM, Rellizate wrote: Well, mostly because I wanted to practice my SQl.
Better do that in your own time. ;) You need to give people the best solution which is fast and secure - if you'd ask me.
NG BBS & Review moderator // PM abuse // Check my audio!
Posted at: 4/17/06 07:04 PM
Sign-Up: 10/02/05
Posts: 456
I think this was ment to be an affiliate in/out counter (at least thats what i gather from the comment he left).
Obnoxious2ombie.com - Online Drug Lord!
Posted at: 4/17/06 08:19 PM
Sign-Up: 03/24/03
Posts: 3,101
At 4/17/06 12:16 PM, Nino_JoJ wrote: However you are right, I am saving it the DB as well. But my script is ALOT smaller, and, because of it, faster.
A smaller script doesn't me flat out anything - my entire website is run off of five lines of PHP, but that doesn't mean it's going to work any faster than somethingawful.
omg. Playstation Network tag: muffin-noodle the empty set
Posted at: 4/18/06 10:54 AM
At 4/17/06 07:04 PM, Ziaja wrote: I think this was ment to be an affiliate in/out counter (at least thats what i gather from the comment he left).
Well, it only counts in. Also this was actually created for seeing how many unique hits, sites which you bought advertising off sent you. You can use it for lots of stuff, though.
Posted at: 4/18/06 11:16 AM
Ok, fixed.
Change line in add_new.php where it says: $result = mysql_query("select * from supporters limit 1");
to: $result = mysql_query("SELECT id FROM supporters ORDER BY id DESC LIMIT 1");
Posted at: 4/18/06 11:39 AM
Sign-Up: 07/31/03
Posts: 1
sweetness, always looking for php goodies, thank ya kindly :P
Posted at: 4/18/06 02:53 PM
That's ok.
Remember to:
change line in add_new.php where it says: $result = mysql_query("select * from supporters limit 1");
Posted at: 2/16/07 03:26 PM
Sign-Up: 02/07/05
Posts: 4,707
The link is broken :'(
knugen.com | NG-medals.com
Posted at: 2/16/07 03:34 PM
Sign-Up: 07/01/06
Posts: 2,196
At 2/16/07 03:26 PM, DreamworX wrote: The link is broken :'(
Yuppers,
Im going to pm the thread starter asking if he can make another thread and called php: counting unique hits and he can remake the tut, and replace it in the PHP Main
| Hack7 Internet Forum | Free Warez, Software, Ect | Free Hardcore Lesbian Porn | Free Website Hosting
Posted at: 2/16/07 03:36 PM
At 2/16/07 03:34 PM, PHPgeek wrote: Im going to pm the thread starter asking if he can make another thread and called php: counting unique hits and he can remake the tut, and replace it in the PHP Main
Ok, do you think that you could PM me if he does so? Thanks :)
Posted at: 2/16/07 05:11 PM
Sign-Up: 05/15/04
Posts: 1,190
Counting unique hits isn't so tough to set-up. You just need a MySQL database and an idea what you're trying to accomplish :-)
BTW, what is exactly considered an unique hit? A single request from an IP address in 24 hours?
hrpa bezveznjaka
All times are Eastern Standard Time (GMT -5) | Current Time: 12:35 AM
<< Back