Kindly fix this script(PLSS)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kindly fix this script(PLSS)

    demo:http://waptop.isgreat.org/in.php?sid=1

    There's no vote in receive in a site.Why? Pls can you fix the script below?
    [HIDE]<?php
    include("func.php");
    include("conf.php");
    connect($dbserver,$dbname,$dbuser,$dbpass);
    $sid=$_GET["sid"];
    //HEADERS
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"
    \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
    echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
    echo "<head>\n";
    echo "<meta name=\"keywords\" content=\"$meta_keyw\"/>\n";
    echo "<meta name=\"description\" content=\"$meta_desc\"/>\n";
    echo "<meta name=\"robots\" content=\"index, follow\"/>\n";
    echo "<meta name=\"revisit-after\" content=\"1 days\"/>\n";
    echo "<meta name=\"rating\" content=\"general\"/>\n";
    echo "<meta name=\"author\" content=\"$admin_email\"/>\n";
    echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n";
    echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
    echo"<title>$site_name</title>";
    echo"<link rel=\"stylesheet\" type=\"text/css\" href=\"themes/$site_theme.css\"/>";
    echo"</head>";
    //HEADERS END
    echo"<body>";
    echo"<div align=\"center\">";
    echo"Welcome to <b>$site_name</b> portal!<br/>";
    echo"<img src=\"images/home.png\"/><a href=\"index.php?sid=$sid\">Enter</a>";
    echo"</div>";
    echo"<hr>";
    echo"<div align=\"center\">&#169; $site_name</div>";
    echo"</body></html>";
    ?>[/HIDE]

    #2
    well, it must have something like

    $siteid = $_GET["sid"];
    $actualviews = mysql_fetch_array(mysql_query("SELECT views FROM sites WHERE siteid='".$siteid."'"));
    $nowviews = $actualviews[0] + 1;
    mysql_query("UPDATE sites SET views='".$nowviews."' WHERE siteid='".$siteid."'");
    mysterio.al - programming is a functional art

    Comment

    Working...
    X