-
-
Save kwd/3149562 to your computer and use it in GitHub Desktop.
OsCommerce: Export customer email list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
mysql_connect(localhost,'USER','PASS'); | |
@mysql_select_db('DATABASE') or die( "Unable to select database"); | |
$sql = 'SELECT customers_email_address FROM customers'; | |
$result = mysql_query($sql); | |
while($row = mysql_fetch_array($result)) { | |
echo $row['customers_email_address'] . "\n"; | |
} | |
mysql_close(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment