Note that there are some explanatory texts on larger screens.

plurals
  1. USthesunneversets
    primarykey
    data
    text
    plurals
    1. COI think you're sensible to move the problem inside the function. I haven't used the Auth component much yet (maybe I should investigate it further?) but this could be a quick fix for me: function dash($id) { if(empty($id)) $id = $_SESSION['userid']; ... } I'm still curious as to why session variables and routes.php don't want to mix...
      singulars
    2. COUnfortunately, for reasons obscure to me, it seems to have been considered desirable at some point for people to put non-numeric data in the mls field (e.g. 'exclude' or whatever). I'm sure you're right that a better design would be for valid numbers only to be contained in this field, but for the time being I may be stuck with checking the data after it comes out of the database. I'll definitely look into the possibility of sanitizing the contents of this field, and not letting nonsense into it in future, though; good idea!
      singulars
    3. CO@Ben: Does "caching" a jQuery object like that entail any risks of losing track of the object's changing values? e.g. if I create a variable called $input to cache 'jQuery('#input'). Would if($inputfield.val != 0) work later on? Don't want to merrily assign all of my DOM elements to variables and then discover I've broken everything. (In the code sample given, your suggestion seems without possible drawback, of course...)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload