hackerman Posted February 27, 2007 Report Share Posted February 27, 2007 Kods šeit Palīdzat atrast kļūdu :) Errors: Parse error: parse error, unexpected T_STRING in fails.php on line 10 Link to comment Share on other sites More sharing options...
andrisp Posted February 27, 2007 Report Share Posted February 27, 2007 Tu jokojies ? Kas ir šis ? $kverijs = select * from lietotaji where lietotajvards="$lietotajvards" and parole="$parole"; Man jau patīk šie cilvēki, kas vienā topikā runā gudri par skriptu laušanu utt, bet citā nemāk stringu nodefinēt. :) Link to comment Share on other sites More sharing options...
hackerman Posted February 27, 2007 Author Report Share Posted February 27, 2007 da sap*st ir vieglāk, nekā kautko uztaisīt :P btw, mysql tikai mācos tagad :) un pēdiņas tur arī mainīju visvisādi, bet nesanāca :D Link to comment Share on other sites More sharing options...
martins256 Posted February 27, 2007 Report Share Posted February 27, 2007 "select * from lietotaji where lietotajvards='$lietotajvards' and parole='$parole'"; Link to comment Share on other sites More sharing options...
hackerman Posted February 27, 2007 Author Report Share Posted February 27, 2007 ooo jāa... man tos errorus, kas tikko parādījās likt iekš paste.php.lv vai vnk code tagos? ;D Link to comment Share on other sites More sharing options...
andrisp Posted February 27, 2007 Report Share Posted February 27, 2007 Btw, tavs kods ir nedrošs, jo tajā var izpildīt sql injekciju, ja nu vienīgi tu POST eskeipo iekš config.php vai arī tev ir ieslēgta magic_quotes_gpc direktīva. Kā arī nav īsti jēgas no zvaigznītes iekš selecta, ja tu vēlies tikai uzzināt vai jūzeris tāds ir vai nav. Link to comment Share on other sites More sharing options...
hackerman Posted February 27, 2007 Author Report Share Posted February 27, 2007 (edited) Erroru jūra te http://paste.php.lv/5217 andrisp, nez kap�“ man tie errori kautkur redz�“ti bija? moška tā jau sākumā biju m�“ģinājis? Edited February 27, 2007 by hackerman Link to comment Share on other sites More sharing options...
andrisp Posted February 27, 2007 Report Share Posted February 27, 2007 1) configphp ? 2) sesija nevar piestartēties, jo ir outputs (kļūdas paziņojums par to include). 3) izskatās, ka tu nemaz neesi pieslēdzies datubāzei (vai arī norādījis nepareizus login datus). Link to comment Share on other sites More sharing options...
hackerman Posted February 27, 2007 Author Report Share Posted February 27, 2007 (edited) <? $hosts = "localhost"; $datubaze = ""; $mysql_lietotajs = ""; $mysql_parole = ""; mysql_connect ( $hosts, $mysql_lietotajs, $mysql_parole)or die("Neizdevās piekonekt�“ties MySql serverim: ".mysql_error()); mysql_select_db($datubaze) or die(mysql_error()); ?> P.S. Piereģistr�“ties var, bet nevar ielogoties :) un dati bija pareizi norādīti :) Edited February 27, 2007 by hackerman Link to comment Share on other sites More sharing options...
andrisp Posted February 27, 2007 Report Share Posted February 27, 2007 (edited) Nemuldi :] Šaubos vai vispār ir iespējams ielogoties iekš mysql bez jūzerneima. Bez paroles - jā, bet bez jūzerneima noteikti ne. (PHP laikam gan mēģina izmantot ODBC kā jūzerneimu, bet šaubos vai tas tev ir "nodefinēts" datubāzē). Edited February 27, 2007 by andrisp Link to comment Share on other sites More sharing options...
hackerman Posted February 27, 2007 Author Report Share Posted February 27, 2007 (edited) :D man nav ko muldēt :D lasīt & rakstīt māku tomēr :P nu to loginu & pw jau izņēmu ārā, kad postoju šeit :D Edited February 27, 2007 by hackerman Link to comment Share on other sites More sharing options...
march Posted February 27, 2007 Report Share Posted February 27, 2007 (edited) include 'config.php'; (nevis bez pēdiņām), pēc šī brīdinājuma novēršanas vajadzētu pazust arī pārējiem, jo acīmredzot tajā config.php ir jābūt pašai konekcijai pie mysql servera ar pareizu vārdu un paroli Edited February 27, 2007 by march Link to comment Share on other sites More sharing options...
hackerman Posted February 27, 2007 Author Report Share Posted February 27, 2007 paldies, visu sakruķiju :D Link to comment Share on other sites More sharing options...
Recommended Posts