if ($name=="" OR $url=="" OR $title=="" OR $detail=="") {
echo "<h3> error=Please Complete your description</h3>";
exit();
}
$url="http://".$url;
$count_url=0;
include "connect.php";
$sql="insert into tb_webdir value('','$name','$url','$category','$title','$detail','$count_url')";
$result=mysql_db_query($dbname,$sql);
if ($result) {
echo"<h3>Complete Add Website(url)</h3>";
echo "[ <a href=index.php>Back To Home Page</a> ]";
} else {
echo "<h3>error can not add website (url)</h3>";
}
mysql_close();
?>