Hello, well, I need some more help! (I'll use this thread now if I need any help if that's okay!)
I am making a website where people can make accounts, and post on there wall, like facebook, but, you know, different!
And, I want to do something like this, but since I cba setting up the database and testing, I just would like to know if I can get help with this:
I would like to know how to do an 'if and else' statement, IE:
PHP Code:if $username = Swag
{
mysql_query("UPDATE users SET post_colour = Black WHERE username = $username");
} else {
if $loggedin = False
{
header('Location: http://site.com/login');
} else {
echo'you have no access to this section!';

