iRawrHotel
Member
- Mar 4, 2012
- 41
- 0
Hello,
I'm coding a registration for my site, and trying to do an if statement, so that if in the database, register == 1, it shows the form, else it shows Registration Is Currently Disabled;
I currently have this;
$register = mysql_query("SELECT * FROM register")
But i get
Any help would be appreciated!
I'm coding a registration for my site, and trying to do an if statement, so that if in the database, register == 1, it shows the form, else it shows Registration Is Currently Disabled;
I currently have this;
$register = mysql_query("SELECT * FROM register")
PHP:
if ({$register} == 1)
{
echo "Form Here"
}
else {
echo "Registration Is Currently Disabled"
}
But i get
Code:
Parse error: syntax error, unexpected T_IF in /home/u872116037/public_html/register.html on line 55 Which is highlighted in the code above.
Any help would be appreciated!