Forum Moderators: coopster
}
if($exec == "ModifyReq"){
if(authenticate($username, $password, 26, $REMOTE_ADDR) == 1) {
global $tableColor, $fontString, $myrow, $today2,$ip;
$result = @mysql_query("SELECT * FROM templates");
$row = mysql_fetch_array($result);
extract($row);
echo("
<form action=$PHP_SELF?exec=ReqModded method=post>
<table width=500 border=0 cellspacing=0>
<tr><td colspan=2>
<center><b>$fontString <font size=5>Modify Requirements</b></center><br>
</td></tr>
<tr><td bgcolor=$tableColor>
</td><td bgcolor=$tableColor><center>
<textarea name=req rows=30 cols=65>$row[req]</textarea>
</td></tr>
<tr><td colspan=2 bgcolor=$tableColor>
<center>
<input type=submit value=\"Modify Now\">
</form
@mysql_query("
INSERT INTO log SET info = \"$rank $myrow[username] modified the Requirementss page on $today2\", ip = \"$ip\"
");
echo("
$fontString
The Requirements page has been modified. <bR><bR>
$fontcolor $rank $myrow[username] modified the Requirements page on $today2 $fontString- was written into log.
<bR>
<center><font size=2 face=verdana><b><a href=main.php>Click Here to return to main menu</font></b></center>
</td></tr>
</table>
");
}
I get an error on this line,
INSERT INTO log SET info = \"$rank $myrow[username] modified the Requirementss page on $today2\", ip = \"$ip\"
Unexpected T_STRING, that's all..
Would anyone happen to have advice, or help?
</form
@mysql_query("
PHP thinks that the mysql_query is part of the echoed text, and once it gets to the quote [@mysql_query(" <-- right there], it throws an error.
Try doing this instead.
</form>");
@mysql_query("
Notice I ended the echo(""); statement.
I'm assuming you aren't using a code-highlighting editor for your PHP. If so, I highly recommend using one. Go to [php-editors.com...] and check some out.
Hope this helps.