Something Simpe ..:(

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

    Something Simpe ..:(

    hi help me at this please :
    i want 4 my chat top ... partners to put o their site link 4 example : http://mychat.bla/?site=blabla
    ---what its wrong on the code----
    Code:
    $_GET["site"];
    $sitename=$_GET["site"];
    $search = mysql_query("SELECT name, hits FROM tecweb_parteneri");
    if($sitename==$search[0])
    {
    $hits2 = $search[1] + 1;
    mysql_query("INSERT INTO tecweb_parteneri SET hits='".$hits2."' WHERE name='".$sitename."'");
    }
    --------pls help :P-------
    Hate romains that take codes from here and tell to all that they had made that

    #2
    this will work unless your trying to add new site links into the database if there not already in there
    Code:
    $sitename=$_GET["site"];
    $search = mysql_query("SELECT hits FROM tecweb_parteneri WHERE name='".$sitename."'");
    $hits2 = $search[1] + 1;
    mysql_query("UPDATE tecweb_parteneri SET hits='".$hits2."' WHERE name='".$sitename."'");

    Comment

    Working...
    X