[UberCMS Help] Database SQL

Status
Not open for further replies.

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
Hey Guys. I have been editing my UberCMS and I am about to open my own hotel coming after new years (2014) and I am a little stuck on my edit. The other owner of the hotel I am opening suggested we add Age/Location to the staff page so now it looks like this:
jahIdFo.png

I am just testing it so this is not how it will look, I am going to line it up better and make it look more neat and all that so don't comment about that, thats not my problem thanks.

Well anyway so I got it to access the database for Age/Location/Motto but I need to when they register put their age that goes into the navicat
ltmg.png


Problem: When it goes into the database it puts ; 0

Register Tests where the 0's I wrote the 16's in
apx7.png


Help? Thanks!
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
Haha too pro, to fix this you simply add this line:
Code:
mysql_query("UPDATE users SET age = '" . $age . "'");
If anyone else wants to add Age to their UberCMS (You also have to edit the users class/register.php/page-register.tpl

@Legion @RastaLulz Close thread please, thanks guys!
 
Status
Not open for further replies.

Users who are viewing this thread

Top