<<<<Restricted Area>>>>" .
"
Sorry, you must Log In to view this Page
Error retrieving data from data base.
' . 'Error: '. mysql_error(). '
Comma Separated Values (.csv) file for Regional Director
Click "Copy to Clipboard" to copy the text in the window below. Paste (Cntrl-V) the script into a new file in a plain text editor (eg.,Note Pad or Simple Text). Save the text file as "whatever.csv". You will then be able to import it into another program or data base as a Comma Separated Values file. |
mysql_select_db('ecosmar_contacts', $dbcnx);
$i=0;
while($i < count($repusrn_array)) {
$result = mysql_query("SELECT ID,first_Name,Name,Title,Company,biztype,Phone,Address,FAX,City,email,State,ZipCode,dtnum,dtup,usrn,usremail FROM con_main WHERE usrn='$repusrn_array[$i]'");
if (!$result) {
echo 'Could not get CSV: ' . mysql_error();
exit();
}
while($row = mysql_fetch_array($result)) {
echo("$row[0],$row[1],$row[2],$row[3],$row[4],$row[5],$row[6],$row[7],$row[8],$row[9],$row[10],$row[11],$row[12],$row[13],$row[14],$row[15],$row[16]
"); } $i++; } ?> |
©2007 - Data Base Interface - Custom Built at:
![]() |