Add/Delete Amounts from an entrie...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
monkeyj
Forum Commoner
Posts: 82
Joined: Mon Dec 15, 2003 4:32 pm
Location: USA
Contact:

Add/Delete Amounts from an entrie...

Post by monkeyj »

I'm working on making a conversion from a number of forum posts.. to convert the posts into a (credit) of value = to the posts...

And.. I kept looking and looking to see If I could find the script that adds +1 to their posts entrie when they submit a forum post..
but I couldn't find it..

So, now I'm stuck..
:(
~monkeyj
User avatar
monkeyj
Forum Commoner
Posts: 82
Joined: Mon Dec 15, 2003 4:32 pm
Location: USA
Contact:

Post by monkeyj »

oh.. from the MySQL Entry itself...
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

Code: Select all

"UPDATE table SET postcount='postcount+1' WHERE userid='".$idnumber."'";
User avatar
monkeyj
Forum Commoner
Posts: 82
Joined: Mon Dec 15, 2003 4:32 pm
Location: USA
Contact:

Post by monkeyj »

:-/ Probably didn't say what I meant correctly...
Not the actual MySQL Querie thingy...

Ummm

Like.. I want a php page...
with..

"Enter amount of posts to redeem here:"
(enter here)

>>Convert to Credit Points!<<

Then.. when they push Convert.. the amount they entered.. takes away from their post..
and then gives them a certain amount of Credit Points determining how many posts they entered...
User avatar
monkeyj
Forum Commoner
Posts: 82
Joined: Mon Dec 15, 2003 4:32 pm
Location: USA
Contact:

Post by monkeyj »

The fields are setup and ready in the MySQL table for my forums.. just don't know how to add/delete without manually changing the table...
Post Reply