Hello,
I'm having trouble with these syntax errors & need some help. Thanks!
Parse error: syntax error, unexpected T_STRING in /home/a3933825/public_html/require.inc.php on line 43
function footer() {
?>
<CENTER>
<table>
<tr>
<td class="font"align=center><a href="start.php?option=contact">-contact us-</a> <a href="privacy.htm" target="_NEW">-privacy policy-</a> <a href="spam.htm" target="_NEW">-spam policy-</a><br></td></tr>
</table>
</CENTER>
<?
}
?>
I also get the following syntax error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '{' in /home/a5957980/public_html/includes/functions.php on line 18
Here's the code:
<?
$conf = mysql_fetch_array(mysql_query("SELECT * FROM config WHERE id = 1"));
function get_num_websites()
{
$query = mysql_query("SELECT * FROM urls");
$numrows = mysql_num_rows($query);
return $numrows;
}
function get_num_banners()
{
$query = mysql_query("SELECT * FROM banners");
$numrows = mysql_num_rows($query);
return $numrows;
}
function get_num_users()
{
$query = mysql_query("SELECT * FROM users");
$numrows = mysql_num_rows($query); <<<<<<<<<<<< line 18
return $numrows;
}
I don't understand why i'm getting an error since I have the same string earlier in the code & I don't get an error on that.
Thank you,
StreeRodFanatik