Code: Select all
if (!mysql_query($sql,$con))
{
die('<font color="red" size="4"><br/>Error: </font>' . mysql_error());
}
<div align='center'>
echo '<font size=\'4\' color=\'blue\'>'Welcome to Mythic Aeons</font>';
mysql_close($con);Moderator: General Moderators
Code: Select all
if (!mysql_query($sql,$con))
{
die('<font color="red" size="4"><br/>Error: </font>' . mysql_error());
}
<div align='center'>
echo '<font size=\'4\' color=\'blue\'>'Welcome to Mythic Aeons</font>';
mysql_close($con);Code: Select all
echo '<font size=\'4\' color=\'blue\'>'Welcome to Mythic Aeons</font>';Code: Select all
echo '<font size=\'4\' color=\'blue\'>Welcome to Mythic Aeons</font>';Code: Select all
if(!mysql_query($sql,$con)){
die("<font color=\"red\" size=\"4\"><br/>Error: </font>" . mysql_error());
}
echo "<div align=\"center\"><font size=\"4\" color=\"blue\">'Welcome to Mythic Aeons</font>";
mysql_close($con);You are mixing PHP and HTML incorrectly, that is why. You either need to use PHP to output your HTML or you need to move into and out of HTML mode using your PHP code. Take what you have posted and turn it into this:Mythic Fr0st wrote:Im getting a parse error somewhere in this line of code...
I dunno why?, someone plz helpCode: Select all
if (!mysql_query($sql,$con)) { die('<font color="red" size="4"><br/>Error: </font>' . mysql_error()); } <div align='center'> echo '<font size=\'4\' color=\'blue\'>'Welcome to Mythic Aeons</font>'; mysql_close($con);
Code: Select all
<?php
if (!$result = mysql_query($sql,$con)) // makes sense to store the query result for use later, no?
{
die('<font color="red" size="4"><br/>Error: </font>' . mysql_error());
}
echo '<div align="center">'; // This was your error
echo '<font size="4" color="blue">Welcome to Mythic Aeons</font>'; // This would have thrown errors as well
mysql_close($con);
?>