From: Ted K. <te...@aa...> - 2007-10-14 05:10:02
|
Hello everybody, long time not problems I am creating a small PHP mailing program. I need the code produce this "Name Lastname <Nam...@gm...>" Any ideas as to why this code will not work? Ted Knudson South Bend, IN $handle=fopen("list.csv","r"); flock($handle,1); while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { $num = count($data); echo "<p> $num fields in line $row: <br /></p>\n"; $row++; for ($c=0; $c < $num; $c++) { echo "c".$c." ".$data[$c] . "<br />\n"; $to0 = $data[0]; $to1 = $data[1]; } Echo $to0."<br>\n"; //Works OK Echo $to1."<br>\n"; //Works OK $to="\"".$to0." <"; //.$to1.">"."\""; //Works to this point $to="\"".$to0." <".$to1;//.">"."\""; //Only prints "$to0 $to="\"".$to0." <".$to1.">"."\""; //Only prints "$to0 echo $to."<p>\n"; //Prints above } fclose($handle); Ted Knudson www.aaWorldSales.com 1-800-204-2422 |