Parse error: parse error, unexpected T_ECHO in C:\Documents and Settings\Administrator\Desktop\New File Site\$test.txt on line 3
Lines 1 - 11
CODE
<?php
$table = "$mod"
echo "<table width=\"95%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" align=\"center\">\n";
echo "<tr>\n";
echo "<td width=\"100%\" colspan=\"3\" class=\"attachheader\" align=\"center\"><b><span class=\"gen\">\n";
$result = mysql_query("select * from $table WHERE id = '$id'") or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
echo $row["linkname"];
}
echo "</span></b></td>\n";
$table = "$mod"
echo "<table width=\"95%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" align=\"center\">\n";
echo "<tr>\n";
echo "<td width=\"100%\" colspan=\"3\" class=\"attachheader\" align=\"center\"><b><span class=\"gen\">\n";
$result = mysql_query("select * from $table WHERE id = '$id'") or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
echo $row["linkname"];
}
echo "</span></b></td>\n";
as far as i can tell the code looks fine so i am totally lost :-(