Im pretty new on making webpages. But i´m doing a homepage with forms to Insert to my database. Thats no problem, my problem is that I want to show a specific column from the last row. And the code that I've got so far is this:

```
<html>
<body>

<form action="insert.php" method="post">
 Publiceringsdag (OBS! En dag tidigare an foregaende):<br>
 <?php
 $con=mysqli_connect("localhost","rss","Habb0","kalender");
 if (mysqli_connect_errno())
 {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
 }
 $lastPub = mysql_query("SELECT DISTINCT pub FROM event ORDER BY `id` DESC LIMIT 1")
 or die(mysql_error());
 echo $lastPub
 ?>
 <br>
 <input type="text" name="pub"><br>
 <input type="submit">
 </form>

 </body>
 </html>

```