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
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
#12
Thanks for the explanation @brian
  Reply
#13
@brian , i have a query since it is very long for formatting over here i posted in external site which link is below . can you look at that and either help me with a reply over here or there .

Code:
http://stackoverflow.com/questions/36032007/php-redirect-user-if-logged-in
  Reply
#14
I'll need to defer to @mudmin since this is more in his domain and he wrote the redirect classes (or is now managing them at least). With any luck he will chime in soon.
  Reply
#15
Hey @jjmmrg did you definitely set the url for your site in your settings?

What version of UserSpice are you using?
  Reply
#16
I have internet now, but not my workstation that I built userspice on. I'm still in transition but making progress. I'll pop over to stack exchange and give it a shot. Looking at the question, it's a 4.x version.
  Reply
#17
This tardiness will get you fired! Tongue
  Reply
#18
@brian Thanks for looping @mudmin
  Reply
#19
@astropos , yes i did everything . However now everything is solved with the help of @mudmin mate
  Reply
#20
@brian , even being tardiness , he took time to help me . so its been forgiven Tongue Just kidding ;-)
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)