The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Retrieving data from database
#30
That's where the user_id comes from. When a user signs up, their id gets inserted into the signups table, so if
yoga is event 1
dodgeball is event 2

my signup would look like
id = whatever(doesn't matter)
event_id=2(dodgeball)
user_id=17(my id in the users table)
day = wednesday

Basically that signup table ties the users table (user_id) together with the events table (event_id) and adds the day that I want to sign up for. All of a sudden we have these 3 tables that work together without caring how many rows the other has. You can have unlimited users, unlimited events and unlimited signups and because the ids "relate" the info from one table to another, it's infinately dynamic.

My adding to the users table you have to keep creating my more events and more times and more everything until it gets out of control.

There are ways to make it more dynamic (more than one yoga per day etc), but like I said, this is how that works at its core.

You'll notice we do the same thing in userspice.
The pages table is an id for each page.
The permissions table is an id for each permission level
page_permission_matches determines which permission level can visit which page.
  Reply


Messages In This Thread
Retrieving data from database - by LBC - 01-04-2019, 09:02 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:07 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 09:24 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:27 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 09:36 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:36 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 09:39 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:39 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 09:48 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 10:21 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 10:22 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 10:39 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 10:42 AM
RE: Retrieving data from database - by LBC - 01-04-2019, 10:44 AM
RE: Retrieving data from database - by mudmin - 01-04-2019, 10:45 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 09:12 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 09:23 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 09:43 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 09:58 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 09:59 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 10:04 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:06 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:14 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 10:31 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:35 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 10:39 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:40 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 10:49 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 10:54 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 11:05 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 11:06 AM
RE: Retrieving data from database - by mudmin - 01-10-2019, 11:07 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 11:14 AM
RE: Retrieving data from database - by LBC - 01-10-2019, 01:35 PM
RE: Retrieving data from database - by LBC - 01-13-2019, 01:37 PM
RE: Retrieving data from database - by mudmin - 01-13-2019, 01:50 PM
RE: Retrieving data from database - by LBC - 01-13-2019, 02:55 PM
RE: Retrieving data from database - by mudmin - 01-13-2019, 02:58 PM
RE: Retrieving data from database - by LBC - 01-13-2019, 03:04 PM
RE: Retrieving data from database - by mudmin - 01-14-2019, 10:20 AM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:11 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:12 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:17 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:17 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:18 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:22 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:19 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:25 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:32 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:34 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 12:37 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 12:41 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:03 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:04 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:08 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:11 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:17 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:22 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:24 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:43 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 01:48 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 01:55 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 02:12 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 03:27 PM
RE: Retrieving data from database - by mudmin - 01-22-2019, 03:28 PM
RE: Retrieving data from database - by LBC - 01-22-2019, 03:36 PM
RE: Retrieving data from database - by LBC - 03-26-2019, 08:00 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)