Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2004
Posts: 490
Likes: 2
Addict
Addict
Joined: Aug 2004
Posts: 490
Likes: 2
In table: ubbt_USER_PROFILE
Field: USER_BIRTHDAY


What should be the correct database entry for someone who has not provided their DOB?

Although the majority of times I see "0" in the database I still have thousands of entries that show "//" and furthermore there is no cut-off period (for instance users up to user id x...) after which one method would follow the other.

So for instance users 4000, 4001, 4006, 4007 are showing "0" but 4002, 4003, 4004, 4005 are showing"//" in the database. What is the correct entry?

Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
That field default for USER_BIRTHDAY is a NULL, so a blank value should be NULL. A filled in date would be mm/dd/yyyy.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2004
Posts: 490
Likes: 2
Addict
Addict
Joined: Aug 2004
Posts: 490
Likes: 2
Thanks, just updated all "//" entries to "0" to keep everything uniform.

Just a hunch that the difference was probably caused by so many version changes over the years as originally our forums started with UBB Classic before moving to Threads...

Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
0 isn't null, it's a value of 0; you can clean your database a bit to set empty fields that are null to null:
SQL Query
UPDATE `ubbt_USER_PROFILE` SET `USER_BIRTHDAY` = NULL WHERE `USER_BIRTHDAY` = '0';


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
1 member likes this: Conrad

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (Gizmo), 156 guests, and 110 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)