Error or not and insert to database mysql
<p>Why wont this work? </p>

<pre><code>&lt;?php include "top.php"; 
include "connect.php";
if(isset($_POST["submit"])) {
$error = "";
    if(empty($_POST["name"])) {
        $error .= "Du glömde märket!&lt;br&gt;";
        if(empty($_POST["rating"])){
        $error .= "Du glömde att bedömma märket!&lt;br&gt;";
                if(empty($_POST["worth"])){
        $error .= "Du glömde att välja vilken klass den hör till!&lt;br&gt;";
                if(empty($_POST["username"])){
        $error .= "Du glömde att skriva ditt namn!&lt;br&gt;";
                if(empty($_POST["rating"])){
        $error .= "Du glömde att skriva någonting?!!&lt;br&gt;";
        }}}}}
    if(!empty($error)){
    echo $error;
    }else{
$name = $_POST["name"];
$rating = $_POST["rating"];
$worth = $_POST["worth"];
$favorite = $_POST["favorite"];
$username = $_POST["username"];
$description = $_POST["description"];
mysql_query("INSERT INTO brands (name, rating, worth, favorite, username, description) VALUES ('$name', '$rating', '$worth', '$favorite', '$username', '$description')");
echo "&lt;span style='color: green'&gt;Yir yir, &lt;a href='brand.php'&gt;klicka här för att gå till Märken.&lt;/a&gt;&lt;/span&gt;";
    }
    }
</code></pre>

<p>It doesnt come with errors it just say the succeed message like it has inserted to database</p>
