andrisp Posted December 6, 2007 Report Share Posted December 6, 2007 (edited) Tu taču tur kodā neizmanto ne manu, ne Krizdabz variantu, bet kaut ko esi iepļekājis tikai. Edited December 6, 2007 by andrisp Link to comment Share on other sites More sharing options...
Val Posted December 6, 2007 Report Share Posted December 6, 2007 droši vien mēģina iebraukt, kāpēc Kristapa funkcija vienmēr atgriež TRUE un kas ir mysql_get_row :) Link to comment Share on other sites More sharing options...
Kristabs Posted December 6, 2007 Report Share Posted December 6, 2007 :)) Biš aizrāvos ar true atgriešanu... uzdevums topika autoram izdomāt, kurš true jāaizstāj ar false, ļoti sarežģīti.. Starp citu, gan mana, gan andrisp funkcija dara vienu un to pašu, mēn.. P.S. andrisp: Krizdabz ir cits, nejauc mani ari dižo blogeri :) Link to comment Share on other sites More sharing options...
andrisp Posted December 6, 2007 Report Share Posted December 6, 2007 Atvainojos :) Link to comment Share on other sites More sharing options...
p4F Posted December 6, 2007 Author Report Share Posted December 6, 2007 (edited) http://paste.php.lv/6535 Fatal error: Call to undefined function mysql_get_row() in E:\AppServ\www\sb\comment.php on line 9 hmm kas nepareizs? :] ko, nav tādas funkcijas ? Edited December 6, 2007 by p4F Link to comment Share on other sites More sharing options...
andrisp Posted December 6, 2007 Report Share Posted December 6, 2007 mysql_fetch_row Link to comment Share on other sites More sharing options...
p4F Posted December 6, 2007 Author Report Share Posted December 6, 2007 varbūt kādam ir lidzīgs skripts un varētu ar to ar mani padalīties? Link to comment Share on other sites More sharing options...
andrisp Posted December 6, 2007 Report Share Posted December 6, 2007 Mēs taču jau padalījāmies, bet tu nepareizi izmanto. Link to comment Share on other sites More sharing options...
p4F Posted December 6, 2007 Author Report Share Posted December 6, 2007 HEEELP, palīdziet man atrast ADD REPLY pogu, citādi māku tikai bezjēdzīgi QUOTĒt es taču neesmu vainīgs ka nesaprotu un jūs neesat, mēs taču visi cilvēki!! lūdzu ļoti vajaga iedodiet pilnu kodu! Link to comment Share on other sites More sharing options...
andrisp Posted December 6, 2007 Report Share Posted December 6, 2007 Ok, izlaboju kļūdas piemērā: <?php function id_exists($id) { $result = mysql_query("SELECT COUNT(*) FROM news WHERE id = ".(int) $id); list($count) = mysql_fetch_row($result); return $count > 0 ? true : false; } if (!is_numeric($_GET['id']) || !id_exists($_GET['id'])) { die(); } ?> Link to comment Share on other sites More sharing options...
Recommended Posts