Codes here !
Moderators: macek, egami, gesf
- php-forum Super User
- Posts: 1805
- Joined: Thu Mar 10, 2011 5:07 pm
After $db->setQuery(), you need to run the query and get the user id to a variable and use that variable.
For example, it could be something like this:
Code: Select all
$sqlQuery = "SELECT `user_id` FROM `#__briefcasefactory_files` WHERE `user_id`='".$my->get('id')."' LIMIT 1"";
$myResult = mysql_query($sqlQuery);
$resObj = mysql_fetch_object($myResult);
$user_id_variable = $resObj->user_id;
I have not tested the above code, but with a few teaks it should work.
Who is online
Users browsing this forum: No registered users and 1 guest