Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Question regarding query in index.php  (Read 1529 times)

0 Members and 1 Guest are viewing this topic.

net

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
[Solved]: Question regarding query in index.php
« on: March 19, 2008, 11:27:02 pm »

Hi,

I have a question regarding this part in the index.php

Code: [Select]
        $result = cpg_db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1 $current_album_set AND approved='YES'");
        $nbEnr = mysql_fetch_array($result);
        $picture_count = $nbEnr[0];
        mysql_free_result($result);

What exactly does this do?

Thanks!
« Last Edit: March 19, 2008, 11:34:08 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Question regarding query in index.php
« Reply #1 on: March 19, 2008, 11:32:12 pm »

Counts the number of files in the database.
Logged

net

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Question regarding query in index.php
« Reply #2 on: March 19, 2008, 11:33:52 pm »

Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.