Forum Moderators: coopster
Here is line 83:
fwrite ($fp, "<table border='1' cellpadding='0' cellspacing='0' bgcolor='990000' width='250'><tr><td bgcolor='666666'><table border='0' cellpadding='4' cellspacing='0' width='250' cellspacing='0'><tr><td><table width='250'><tr><td colspan='2' align='right'><font face='courier' size='1' color='#FFFFFF'> $name [<a href="mailto:$email">$email</a>] [<A href="$url" target='_NEW'>$url</a>] </td></tr><tr><td width='20'><font face='courier' size='1' color='#FFFFFF'></td><td width='250'><font face='courier' size='1' color='#FFFFFF">$comments</td></tr>
<tr><td width='20'></td>
<td><font face='courier' size='1' color='#FFFFFF'><i>(date( 'l, F, jS Y - g:i:s A' ))</i></td></tr></table></td></tr></table></td></tr></table><br>"); // Write the data. Use \r\n on Windows.
flock ($fp, LOCK_UN);
fclose ($fp); // Close the file.
[edited by: coopster at 1:17 am (utc) on Oct. 5, 2004]
[edit reason] edited code dump [/edit]
Line 82:
fwrite ($fp, "<table border='1' cellpadding='0' cellspacing='0' bgcolor='990000' width='250'><tr><td bgcolor='666666'><table border='0' cellpadding='4' cellspacing='0' width='250' cellspacing='0'><tr><td><table width='250'><tr><td colspan='2' align='right'><font face='courier' size='1' color='#FFFFFF'> $name [<a href=\"mailto:$email\">$email</a>] [<A href=\"$url\" target='_NEW'>$url</a>] </td></tr><tr><td width='20'><font face='courier' size='1' color='#FFFFFF'></td><td width='250'><font face='courier' size='1' color='#FFFFFF'>$comments</td></tr>
<tr><td width='20'></td>
<td><font face='courier' size='1' color='#FFFFFF'><i>(date( 'l, F, jS Y - g:i:s A' ))</i></td></tr></table></td></tr></table></td></tr></table><br>"); // Write the data. Use \r\n on Windows.
[edited by: Adrian2k4 at 12:35 am (utc) on Oct. 5, 2004]
color='#FFFFFF[b]"[/b]>$comments Double-quote mark should be a single-quote mark: '#FFFFFF'. A few other unescaped quotes in there, too.
What editor are you using? Does it have text highlighting? All I did was paste the script into my editor, look at line 83 and see where the highlighting went wrong.