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
Fetch data from DB
#11
In most cases a column named "id" is the primary key or unique identifier/selector for a row of data. So when you perform a SELECT id WHERE user_id=? that returns the unique identifier 'id' which in these cases are 100 or 101 or whatever, which matched your query WHERE condition of user_id. So every table in the row can be described the same way: a row with id=X, has user_id=Y and permission_id=Z. Again in this example the id column simply acts as a unique identifier for the useful information which demonstrates the permission_id's which have been assigned to a user_id.

In this case user_id 1 belongs to permission_id 1 and 2 so it has two entries. The actual value of id in this case is meaningless except for providing a unique identifier.
  Reply


Messages In This Thread
Fetch data from DB - by jjmmrg - 03-13-2016, 01:51 PM
Fetch data from DB - by jjmmrg - 03-14-2016, 02:51 AM
Fetch data from DB - by jjmmrg - 03-14-2016, 03:15 AM
Fetch data from DB - by jjmmrg - 03-14-2016, 04:31 AM
Fetch data from DB - by brian - 03-14-2016, 01:10 PM
Fetch data from DB - by mudmin - 03-14-2016, 02:05 PM
Fetch data from DB - by brian - 03-14-2016, 02:12 PM
Fetch data from DB - by jjmmrg - 03-15-2016, 03:16 AM
Fetch data from DB - by jjmmrg - 03-15-2016, 03:20 AM
Fetch data from DB - by jjmmrg - 03-15-2016, 04:37 AM
Fetch data from DB - by brian - 03-15-2016, 01:19 PM
Fetch data from DB - by jjmmrg - 03-16-2016, 03:17 AM
Fetch data from DB - by jjmmrg - 03-16-2016, 09:06 AM
Fetch data from DB - by brian - 03-16-2016, 12:21 PM
Fetch data from DB - by astropos - 03-16-2016, 04:25 PM
Fetch data from DB - by mudmin - 03-17-2016, 12:03 AM
Fetch data from DB - by brian - 03-17-2016, 03:07 PM
Fetch data from DB - by jjmmrg - 03-18-2016, 02:54 AM
Fetch data from DB - by jjmmrg - 03-18-2016, 02:55 AM
Fetch data from DB - by jjmmrg - 03-18-2016, 02:56 AM
Fetch data from DB - by jjmmrg - 03-18-2016, 03:31 AM
Fetch data from DB - by mudmin - 03-18-2016, 12:54 PM
Fetch data from DB - by jjmmrg - 03-19-2016, 03:51 AM
Fetch data from DB - by mudmin - 03-19-2016, 04:41 PM
Fetch data from DB - by jjmmrg - 03-21-2016, 08:19 PM
Fetch data from DB - by mudmin - 03-21-2016, 10:54 PM
Fetch data from DB - by jjmmrg - 03-22-2016, 02:56 AM
Fetch data from DB - by jjmmrg - 03-22-2016, 02:58 AM
Fetch data from DB - by mudmin - 03-22-2016, 04:41 AM
Fetch data from DB - by jjmmrg - 03-22-2016, 04:43 AM
Fetch data from DB - by jjmmrg - 03-22-2016, 11:35 AM
Fetch data from DB - by jjmmrg - 03-22-2016, 11:58 AM
Fetch data from DB - by mudmin - 03-22-2016, 01:49 PM
Fetch data from DB - by jjmmrg - 03-22-2016, 01:56 PM
Fetch data from DB - by mudmin - 03-22-2016, 02:20 PM
Fetch data from DB - by jjmmrg - 03-22-2016, 03:44 PM
Fetch data from DB - by brian - 03-22-2016, 04:02 PM
Fetch data from DB - by brian - 03-22-2016, 04:33 PM
Fetch data from DB - by brian - 03-22-2016, 04:50 PM
Fetch data from DB - by mudmin - 03-22-2016, 05:19 PM

Forum Jump:


Users browsing this thread: 28 Guest(s)