hi, i'm working with php short hand for the first time and i'm trying to edit this code:
<?=($c->is_admin == 'Yes')?'<a href="msg_update.php" input type="submit" class="button" value="protected page">Update Home Page Message</a>'
:
'
<p>
This is not the page you were looking for.
</p>
'
?>
i want to do something like this :
<?=($c->is_admin == 'Yes')?'<a href="msg_update.php" input type="submit" class="button" value="protected page">Update Home Page Message</a>'
$con = @mysql_connect(my login stuff);
mysql_select_db(more stuff); // database
if (!$con)
{
echo'connection error';
die('Could not connect: ' . mysql_error());
}
:
'
<p>
This is not the page you were looking for.
</p>
'
?>
any ideas why it wont work?