// session_start();
require ("http://www.vietnamtravelvalue.com/connect.inc");
// $t1 = $HTTP_POST_VARS["comments"];
// $text = mb_substr('$t1', 1, 3);
// echo "t1: $t1 text: $text";
if ($HTTP_POST_VARS["action_type"] == "addlink")
{
$registerdate = getDate();
foreach($registerdate as $item => $value){
if ($value <10)
$registerdate[$item] = "0" . $value;
}
$checkurl = "SELECT your_site FROM link_item WHERE your_site='" . $HTTP_POST_VARS["your_site"] . "'";
$resultcheck = mysql_query($checkurl,$link);
if (mysql_num_rows($resultcheck) == 0)
{
$postdate = $registerdate['year'] . "-" . $registerdate['mon'] . "-" . $registerdate['mday'];
if ( $HTTP_POST_VARS["txt_new_category"] == "" )
{
$selectid = " SELECT max(itemid) as maxitem FROM link_item";
$resultid = mysql_query($selectid,$link);
$rowmaxid = mysql_fetch_array($resultid);
$addlink = "INSERT INTO link_item(itemid,subjectid,topicid,title,your_site,description,our_site,postdate,registername,email,country,comments,active) VALUES(";
$addlink .= $rowmaxid["maxitem"] + 1 . ",' ";
$addlink .= $HTTP_POST_VARS["Category"] . "','";
$addlink .= $HTTP_POST_VARS["topic"] . "','";
$addlink .= $HTTP_POST_VARS["Web_title"] . "','";
$addlink .= $HTTP_POST_VARS["your_site"] . "','";
$addlink .= $HTTP_POST_VARS["Description"] . "','";
$addlink .= $HTTP_POST_VARS["Valid_link"] . "','";
$addlink .= $postdate . "','";
$addlink .= $HTTP_POST_VARS["article"] . " " . $HTTP_POST_VARS["realname"] . "','";
$addlink .= $HTTP_POST_VARS["Email"] . "','";
$addlink .= $HTTP_POST_VARS["Country"] . "','";
$addlink .= $HTTP_POST_VARS["Comments"] . "',' ";
$addlink .= "2" . "')";
echo $addlink . " ";
// mysql_query($addlink,$link);
}
else
{
$selectid = " SELECT max(itemid) as maxitem FROM link_item";
$resultid = mysql_query($selectid,$link);
$rowmaxid = mysql_fetch_array($resultid);
$addlink = "INSERT INTO link_item(itemid,subjectid,topicid,title,your_site,description,our_site,postdate,registername,email,country,comments,active) VALUES(";
$addlink .= $rowmaxid["maxitem"] + 1 . ",' ";
$addlink .= "17','";
$addlink .= $HTTP_POST_VARS["Category"] . "','";
$addlink .= $HTTP_POST_VARS["Web_title"] . "','";
$addlink .= $HTTP_POST_VARS["your_site"] . "','";
$addlink .= $HTTP_POST_VARS["Description"] . "','";
$addlink .= $HTTP_POST_VARS["Valid_link"] . "','";
$addlink .= $postdate . "','";
$addlink .= $HTTP_POST_VARS["article"] . " " . $HTTP_POST_VARS["realname"] . "','";
$addlink .= $HTTP_POST_VARS["Email"] . "','";
$addlink .= $HTTP_POST_VARS["Country"] . "','";
$addlink .= $HTTP_POST_VARS["Comments"] . "',' ";
$addlink .= "2" . "')";
echo $addlink . " ";
// mysql_query ($addlink,$link);
$add_category = " INSERT INTO link_topic_subject(subjectid, topicid) VALUES('17','" . $HTTP_POST_VARS["Category"] . "')";
echo $add_category . " ";
// mysql_query ($add_category, $link);
}
// header("Location:ler.html");
}
else
{
$message_error = " - " . $HTTP_POST_VARS["your_site"] . " exist.";
// echo $message_error;
}
}
function getSelect($val1, $val2)
{
if ($val1 == $val2){
$getSelect = " selected ";
}
else
{
$getSelect = "";
}
echo $getSelect;
}
?>
Add your link to Vienam Hotels Discount
Vietnam Hotels Discount - Discount Hotels in Vietnam
VIETNAM HOTELS DISCOUNT
Add your link
We are constantly adding new link to our Directory . To
add your url to
http://www.vietnamhotelsdiscount.com and give
your visitors one-click access to the Asia and
Vietnam's most popular Vietnam Hotels Discount reservation
service. Please make a link to our webpage first:
Category :
Vietnam
- Title of our Website: " Vietnam
Hotels Discount, Discounted hotels and resorts in Vietnam "
- Our URL:
http://www.vietnamhotelsdiscount.com
- Description:
Vietnam Hotels Discount,
Discounted Hotels and resorts in Vietnam
Book discounted hotels resorts flights tour packages throughout Viet nam,
Vietnam Hotels Discount offers incredible saving on your hotel and resort
reservation
Note:
Your web site submission will be reviewed shortly, and be added to the links
page. Keep in mind that we visit each site, and it's addition to our directory
is contingent on it's selection. This can take several weeks.
Hotels
in
Select your city/destination
- Ba Ria - Vung Tau
- CanTho City
- Catba island
- Chaudoc
- Condao island
- Dalat
- Danang City
- HaiPhong
- Ho Chi Minh City
- HaNoi
- Hoian
- Halong
- Hue
- Nhatrang
- Ninhbinh
- PhanThiet/Muié
- Phuquoc Island
- Quynhon
- Sapa
- ThanhHoa
- Vinh