hey all,
Help needed please.
AIM: display text parsed from a text file based on the user's preference
PROBLEM: only the colour of the text is affected, the style and size preferences wont change.
//load file into array
$file = file("./comments.txt");
$number_of_lines =count($file);
for ($i=0; $i<$number_of_lines; $i++){
//split up each line
$line = explode( ";", $file[$i] );
$style=$line[2];
$size=$line[3];
$colour=$line[4];
//display comments based on user preference using inline styles
echo "<tr><td>Name: $line[0]</td></tr>
<tr><td>
<P STYLE=color:$colour;font-face:$style,sans-serif;font-size:$size.pt>
Comments: $line[1]</td></p>
</tr>";
}
any help appreciated
thanks in advance