I'm no php expert... so forgive me if I'm overlooking something...
I've got a csv file with two columns, looks like this:
john, VSgv4lEpuGS0vHIKapJZV7o...
jane, yHKy6NW6YJZzloFhLDQUJIN...
the first with simple names, the second with a 1000+ character string. I'm trying to echo these out into a page where the simple name becomes a hyperlink with the long character string as its source. I've got the following:
<?php
if (($list = fopen("list.csv", "r")) !== FALSE) {
while (($data = fgetcsv($list, 1000, ",")) !== FALSE) {
echo "<div><a href='localhost:8888/folder/".$data[1]."'>" . $data[0] . "</a></div>";
}
fclose($list);
}
?>
what happens instead is that the name shows up as a link, but the href contains everything but the last 30+ characters of the long string. And the strangest part is that those remaining 30+ characters show up below that div... within its own within its own (ie. imitating the structure I set up for the linked name)
...any ideas why this might be happening && how to fix it ???? ...I'm pretty stumped.