The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
$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. |