list of users emails list of users emails
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

list of users emails

Started by wipqozn1, January 09, 2007, 03:07:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wipqozn1

Hi,

in this thread: http://forum.coppermine-gallery.net/index.php?topic=1228.40 Nibbler showed a way to display a full list of coppermine's gallery users emails:

<?php

define
('IN_COPPERMINE'1);
require 
'include/init.inc.php';

$test db_query("SELECT DISTINCT(user_email) FROM {$CONFIG['TABLE_USERS']} WHERE user_email <> ''");

while (
$row mysql_fetch_assoc($test))
echo $row['user_email'] . "<br />";

?>


But it returns:

QuoteFatal error: Call to undefined function: db_query() in /var/www/web1/html/b.php on line 6

I use  v.1.4.10. So how can I get that list?

Nibbler

If you read to the end of the thread you will find the solution.

wipqozn1

I missed that attached zip, thanks :-)