Jump to content

Need Help with Updating Number of User posts.


liquidspaceman

Recommended Posts

Hello Everyone,

 

I am having an issue with updating the number of users posts when they post to my forum. This is the code I am using but the "post" field in the table does not update to show the new number of posts in the forum. Help?

 

		$sql	= "update tbl_user set post=post+1 

where (id='$user_id') and (code='$user_code')"; 

	$result	= mysql_query($sql); 

}

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.