• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Adding new information to MySQL Database

Adam K M

Active member

I'm working on a custom php application, based outside of the forums, but making use of custom user fields from the forums.

I've created two custom user fields "Player rating" and "Player rates" - one for their overall score, and the next for the amount of times people have voted for them. I've made it so users can't edit these by themselves, which is pretty important for the rating system to work.

However, this brings up the issue of the actual record in MySQL database. The records aren't set (to null or other, they just simply don't exist)
Is it safe practice to go in an add these manually? Or is there a way to force xenforo to create those entries/records for a user if they don't already have them? If possible, how would I make the default value for them a zero 'o'?
Last edited: