I don't know what's wrong, I get:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in.
There's something wrong with my fetch_array. its in
line 34 while($row = mysql_fetch_array($sql))
<?php
mysql_connect("localhost", "root", "");
mysql_select_db("blog1");
?>
<!DOCTYPE html>
<html>
<head>
<title>BLOGGEN</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="css/kickstart.css" media="all" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="js/kickstart.js"></script>
</head>
<body>
<ul class="menu">
<li class="current"><a href="index.php">Hem</a>
</li>
<li><a href="blogg.php">Din Blogg</a>
</ul>
<?php
$sql = mysql_query("SELECT * FROM blogdata ORDER BY id DESC");
while($row = mysql_fetch_array($sql)){
$title = $row["title"];
$content = $row["content"];
$category = $row["category"];
?>
<table border = "1">
<tr><td><?php echo $title; ?></td><td><?php echo $category; ?></td></tr>
<tr><td colspan="2"><?php echo $content; ?></td></tr>
</table>
<?php
}
?>
</div>
</div>
</body>
</html>