View Single Post
Old 09-12-2001, 04:16 PM  
altasexa
Registered User
 
Join Date: Jul 2001
Location: Australia
Posts: 19
One more try...

Code:
$tgp = file('tgp.txt');
$line = current($tgp);
while ($line) {
  $field = explode(',',$line);
  echo '[a href="' . trim($field[1]) . '"]' . trim($field[0]) . "[/a]\n";
  $line = next($tgp);
}
Just replace the [ and ] with < and >

[This message has been edited by altasexa (edited 09-12-2001).]
altasexa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote