Microsoft
Software
Hardware
Network
Question : How do I get a user ID from a logged in user and include it in my query
Experts,
I have been trying for a week to get this figured out, and am so close I can taste it. Please help me over the hump!!! I am trying to pass value from a user profile (logged in), to an HTML form.
The only thing holding me back is this query
1:
$query = "SELECT firstname, id, lastname, cb_company FROM jos_comprofiler WHERE id=64" ;
I am able to get the desired result when I add a static value for the id. How do I change that value to whoever the logged in user is???
this accesses the logged in user $_CB_framework->myId(), but inserting that into the query breaks the operation.
I am ABSOLUTE novice, so baby language please.
Thank you in advance
FDM
Answer : How do I get a user ID from a logged in user and include it in my query
$query_id=$_CB_framework->m
yId();
$query = "SELECT firstname, id, lastname, cb_company FROM jos_comprofiler WHERE id=$query_id" ;
Random Solutions
HP Designjet 9000s Printer Driver for Windows 7 x64
ActiveX controls moving on a worksheet - Excel 2010
Can not send email in SBS 2003
Cannot install ISA 2006, get error “A Connection to the specified Configuration Storage Server"
The system cannot find the file specified
Logshipping is failing when SQL Server 2008 cluster is failed over
Activate Spanning Tree on 3Com 4500G
Implementing UrlRewriting for URLs of the form
http://myserver/mysite/mys
hortcuturl
Can't Uninstall Exchange Server 2007 SP1 from 2008 server R2
How do you move a VB.NET Click Once Deployment to a new network share?