Jump to content

[SOLVED] Mysql Databases.


whelpton

Recommended Posts

I am currently using a mysql database to store my user data.

 

I am trying to create a referal script that when a user refers a friend it increases his webspace ammount, I am a bit stumped on how to add a certain ammount to a mysql database.

 

For example:

 

$do = mysql_query("UPDATE Users SET kquota =? WHERE id = '$refer' LIMIT 1") or die(mysql_error());

 

I need the KQuota to increase by 50, I am a little confued on how to do this, I know how to change the ammount, but not add to it.

 

Thanks for your time =)

Link to comment
https://forums.phpfreaks.com/topic/116293-solved-mysql-databases/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.