[Solved]: Question regarding query in index.php [Solved]: Question regarding query in index.php
 

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]

Main Menu

[Solved]: Question regarding query in index.php

Started by net, March 19, 2008, 11:27:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

net

Hi,

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

        $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!

Nibbler

Counts the number of files in the database.

net