Advanced search  

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

Pages: [1]   Go Down

Author Topic: Cat Details From Database  (Read 2727 times)

0 Members and 1 Guest are viewing this topic.

ian ditch

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Cat Details From Database
« on: December 05, 2005, 01:34:48 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.