i posted this before and i was asked for a more complete script so here...
the contents.txt file looks like this...
%2#jim
%1#bob
then i got the script...
<?
//some variables
$contentfile = "contents.txt";
//read contents file
$opencontents = fopen($contentfile,"r");
$contents = fread($opencontents, filesize($contentfile));
fclose($opencontents);
//takes out slashes
$contents = stripslashes($content);
//seperates the contents file
$rows = explode("%",$contents);
//testing
echo "$rows[1]";
?>
im not getting anyting on the page. no errors just nothing. if i look at the html source i see nothing. please help.
ben