coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: wipqozn1 on January 09, 2007, 03:07:56 PM

Title: list of users emails
Post by: wipqozn1 on January 09, 2007, 03:07:56 PM
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?
Title: Re: list of users emails
Post by: Nibbler on January 09, 2007, 03:11:45 PM
If you read to the end of the thread you will find the solution.
Title: Re: list of users emails
Post by: wipqozn1 on January 09, 2007, 03:20:05 PM
I missed that attached zip, thanks :-)