Jump to content
php.lv forumi

zintis8789

Reģistrētie lietotāji
  • Posts

    139
  • Joined

  • Last visited

Posts posted by zintis8789

  1. Nu man ir šāds php kods:

    $sql="SELECT SQL_CALC_FOUND_ROWS * FROM `stati` WHERE pos='Goalie' ORDER BY `stati`.`PPG` DESC LIMIT 0, 30 ";

    Un man vajag izvilt no datubazes: S - PPG

  2. Man ir kods:

    <?
    if($_GET[order]==GP || $_GET[cik]==ASC){
    $d=DESC; 
    }
    if($_GET['order']==GP || $_GET[cik]==DESC){
    $d=ASC; 
    }
    ?>

    Es uzspiežu uz linka : manaadrese.lv/index.php?order=GP&cik=ASC

    Man parādās atkal tas pats links: manaadrese.lv/index.php?order=GP&cik=ASC

    Bet man vajag lai parāditos manaadrese.lv/index.php?order=GP&cik=DESC

  3.      while (($data2 = fgetcsv($handle2, 1000, ",")) != FALSE)
    
        {
    
    $ccm12 = mysql_real_escape_string($data2[2]);
    $ccm1 = mysql_real_escape_string($data2[4]);
    $ccm121 = mysql_real_escape_string($data2[5]);
    $time = mysql_real_escape_string($data2[1]);
    $kpp = mysql_real_escape_string($data2[3]);
    $per = mysql_real_escape_string($data2[0]);
    
    
          $import2="INSERT into teamstat(id,per,time,not,team,name,note) values('$nr1','$per','$time','$ccm12','$kpp','$ccm1','$ccm121')";
    
          mysql_query($import2) or die(mysql_error());
          mysql_query("DELETE FROM teamstat WHERE team='Team'");
    }

  4. Es pieliku klāt: mysql_real_escape_string()

    Bet tikuntā man rāda:

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not,team,name,note) values('1','Period','Time','Goal/Penalty','Team','Player Nam' at line 1

  5. Es meiģinu ievietot .csv failu tur ir iekšā vārds: D'Agostini .Vins to nesaprot un man uzmet erroru:

    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\csv\index.php on line 24
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Agostini Matt','MTL','Player','1','13:39','0','0','0','-2','0','0','0','3','0')' at line 1

    Bet parejos vārdus vinš iemet datubāzē.

  6. Velviena problema :(

    Komandu speles atkartojas bet kaa lai izdara taa ka viņas neatkārtojas :(

    Man radas:

    Buls VS Wizards

    Wizards VS Knicks

    Wizards VS Pistons

    Knicks VS Wizards

    Buls VS Wizards

    Warriors VS Wizards

    Warriors VS Wizards

    Wizards VS Suns

    Wizards VS Warriors

    Wizards VS Knicks

×
×
  • Create New...