PDA

View Full Version : checking user post number after posting


09-16-2000, 10:29 PM
I started talking about an affilaite program thing in chit chat but as i thought about i have a more specific idea so thought i would add it here. Hope that is ok.

What I want to know if i can do, is, after a person posts to check the mySQL database to see how many posts that person has made. If that person has made say 100 posts I want the the next page (the "thank you for posting" bit page to load an image of the form
<img src="http://www.domain.com/cgi-bin/script.cgi?posts=100&extra=$id">

if you see what i mean. So I would need an if, elseif type statmement. Is this possible. Finally, the $id i want is going to be 1 of the fields in the user's profile so I also want to be able to "call that".

Is this possible? Where do I start. Thanks

09-19-2000, 05:59 PM
no response? is it possible or do i need to explain it better? thanks.

09-19-2000, 08:23 PM
"All is possible"

09-19-2000, 09:30 PM
Ditto to rangersfan. PHP 0wns you!

09-19-2000, 10:19 PM
p|34$3 3><p|4l|\| :)

please explain (1337 h4X0r sp34|< 0wnz j00!!!111)

09-19-2000, 10:35 PM
I didn't want to go all-out, but if you want!!! ;)

Man, reminds me of my old BBS-ing days.. Sigh. :)

09-19-2000, 11:11 PM
um... yes :)

like the sig ed :)

Off to that PHP manual.

Off topic, what is the best PHP book for someone who has done almost no programming apart from installing a few cgi hacks and a bit of OPL on a psion :)

Thanks.

09-20-2000, 01:08 AM
I think "Professional PHP Programming" by WROX Press is a good book to start with...

09-20-2000, 01:23 AM
thank you, off to infront.co.uk to get it then.