<title>Public Url Post</title>
<form action="" method="post">
URL:<input type="text" label="Url" name="url" /><br />
Title:<input type="text" label="Title" name="title" /><br />
<input type="submit" value="Submit Link" />
<?php
require 'connect.php';
error_reporting(0);
$url = $_POST['url'];
$title = $_POST['title'];
if (!isset($url, $title)){
echo 'Type a title and url please...';
} else {
mysql_query("INSERT INTO `pup` VALUES ('', '$url', '$title')");
}
?>
This code insert urls into a database, but how do i return ALL the urls and make a <a href=""></a><br /> list with all the urls?