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
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
$variable inside file_get_contents - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: $variable inside file_get_contents (/showthread.php?tid=500)

Pages: 1 2


$variable inside file_get_contents - mudmin - 03-30-2017

You're not asking your database to give you the results back.

Try
Code:
$usersQ = $db->query("SELECT * FROM users");
Code:
$users = $usersQ->results();



$variable inside file_get_contents - MarcE - 04-13-2017

Thanks for all your help! I've been reading up on the WHERE clause but since I can't really figure out the sessions I can't get it to work properly.

Is it possible to do it kind of like this? :

Code:
"SELECT CustomColumn FROM users WHERE ??? = '".$_SESSION["????"]."'";

Thank you!


$variable inside file_get_contents - MarcE - 04-19-2017

Solved, thank you!


$variable inside file_get_contents - mudmin - 04-20-2017

Awesome! Glad it's working. Sorry I didn't have any knowledge of how to accomplish that when it comes to the session.