The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
create a custom database entry
#4
The join.php form is a little bit more complicated than the other forms in userspice. Basically, you want to add a new field to the join form, let's say "address."

Then you want to make a new column in the users table called "address."

Then the quickest thing to do is to go into classes/User.php and in the create method add a line like

Code:
$query3 = $this->_db->insert("users",['address'=>$address);

That's the quick and dirty way to do it.
  Reply


Messages In This Thread
create a custom database entry - by michaelspeed - 06-18-2016, 11:52 AM
create a custom database entry - by mudmin - 06-18-2016, 12:50 PM
create a custom database entry - by caleb - 06-19-2016, 06:39 PM
create a custom database entry - by mudmin - 06-19-2016, 07:21 PM
create a custom database entry - by mudmin - 06-19-2016, 07:22 PM
create a custom database entry - by Brandin - 06-07-2017, 05:49 PM
create a custom database entry - by mudmin - 06-08-2017, 12:48 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)