Cat Details From Database Cat Details From Database
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Cat Details From Database

Started by ian ditch, December 05, 2005, 01:34:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ian ditch

Sorry for reffering to an old post but I've hit a brick wall and I need your help.

I asked a question HERE and was given the answer which did help me out, however, what I want to do now is to show the same info (user_name etc) but on the 'Home > User galleries' page.

In the address bar this is a 'cat=' and not 'album="

Previous Answer
Quote
$aid = (int) $_GET['album'];
$result = db_query("SELECT u.* FROM {$CONFIG['TABLE_USERS']} AS u INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON a.category - " . FIRST_USER_CAT . " = u.user_id AND a.aid = '$aid'");
$user = mysql_fetch_assoc($result);
print_r($user);

Please help