Are you having trouble pulling the data out of the file, or creating the link? Do you want a link created for every row? What is the makeup of the file? Is array[0] the URL, and array[1] the desription? If it's just the link you need, that's easy...
echo "<a href='" . $array[0] . "'>" . $array[1] . "</a>"; ---John Holmes... > -----Original Message----- > From: Josh & Valerie McCormack [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 05, 2002 8:23 AM > To: PHP-General > Subject: [PHP] replace question > > I'm iterating through a CSV file pulling in rows as arrays with fgetcsv > and I'd like to search for patterns made up of the first two array items > of each row with a space between them in a text file, and make them into > links. I can't figure out how to do this, could someone help? > > Josh > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php