- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
if (@$_REQUEST['send'])
{
Header("Location: /index.php");
exit();
$username = $_REQUEST['username'];
$message = $_REQUEST['message'];
$a = new message();
$a->connectdb();
$a->addpost($username, $message) or die(mysql_error());
$a->view();
}
300 лет я так не смеялся 😀
mysql_connect("localhost", "mysql_user", "mysql_password")
or die("Could not connect: " . mysql_error());
PS: exit() or die()
по*й на код ;D