Frozen Life Posted January 23, 2011 Report Share Posted January 23, 2011 Atkal man mūžīgās problēmas :D Tā, tad man ir šāda problēma, ka komentārs neliekas db reku scripts nr 1. http://paste.php.lv/3ca8019ddb04feb0b0677d45c160d398?lang=php un Arī nr 2. http://paste.php.lv/76bb036b3fcfb80667211c4c8f7bdecd?lang=php Quote Link to comment Share on other sites More sharing options...
briedis Posted January 23, 2011 Report Share Posted January 23, 2011 Kur ir problēma? Kādas kļūdas tiek izvadītas? Quote Link to comment Share on other sites More sharing options...
gta1151 Posted January 23, 2011 Report Share Posted January 23, 2011 Parādi error mysql_query pieraksti klāt or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
Frozen Life Posted January 23, 2011 Author Report Share Posted January 23, 2011 (edited) Nav nekādu kļūdu. Vienkārši es uzrakstu komentāru mani pārmet uz srciptu Nr2 un tur Piedāvā "Atgriesties atpaka�" Bet man nekāds komentārs nepievienojās. P.S un kā jau redzams, ja viss strādātu, tad vaidzētu uzreiz redirect atpakaļ. jo ir <meta http-equiv='refresh' content='0;url=/index.php?darbiiba=raksts&id=".$id."'> Edited January 23, 2011 by Frozen Life Quote Link to comment Share on other sites More sharing options...
briedis Posted January 23, 2011 Report Share Posted January 23, 2011 Nu tad pārdomā koda loģiku, meklē kļūdu. Quote Link to comment Share on other sites More sharing options...
Frozen Life Posted January 23, 2011 Author Report Share Posted January 23, 2011 Nu jā es saprotu, ka kļūda, bet kurā scriptā un vai jūs nevarat palīdzēt kaut kā ? Quote Link to comment Share on other sites More sharing options...
briedis Posted January 23, 2011 Report Share Posted January 23, 2011 Ej cauri katrai rindiņai koda un centies saprast, ko tā dara. Kodu tak pats rakstīji, vai ne? Tad jau jābūt skaidram tam, kā tas strādā. Quote Link to comment Share on other sites More sharing options...
Frozen Life Posted January 23, 2011 Author Report Share Posted January 23, 2011 Vispār šito komenta scriptu es nerakstīju es viņu paņēmu no vecā weba :( Quote Link to comment Share on other sites More sharing options...
briedis Posted January 23, 2011 Report Share Posted January 23, 2011 Vispār šito komenta scriptu es nerakstīju es viņu paņēmu no vecā weba :( Nu tad neko, prasi koda autoram, lai pastāsta, kā tas darbojas un kur ir kļūda... Vai arī uzraksti to kodu no jauna, izprotot katru rindiņu. Quote Link to comment Share on other sites More sharing options...
Frozen Life Posted January 24, 2011 Author Report Share Posted January 24, 2011 Nu es kļūdu atradu if (isset($_POST['action'])) {$nick = $udata->members_display_name; if ($nick == '') {unset($_POST['action']);}} Kad izņemu viņu man viss strādā, bet viņš neieraksta, kas ir sniedzis komentāru. Varbūt, kāds var palidzēt ? Quote Link to comment Share on other sites More sharing options...
rebuilder Posted January 24, 2011 Report Share Posted January 24, 2011 Neskatoties kodu, minējums, Tev pie pievienošanas pogas nav norādīts name="action"; un tas ko Tu tur uzrakstīji, nav kļūda! Quote Link to comment Share on other sites More sharing options...
Frozen Life Posted January 24, 2011 Author Report Share Posted January 24, 2011 (edited) a kas ir šis ? <form name="form" action="index.php?darbiiba=addncom&id='.$id.'" method="post"> Edited January 24, 2011 by Frozen Life Quote Link to comment Share on other sites More sharing options...
spainis Posted January 24, 2011 Report Share Posted January 24, 2011 var_dump($_POST) uz pārliecināmies, ka tāda mainīgā $_POST['action'] nemaz nav ;) Quote Link to comment Share on other sites More sharing options...
Frozen Life Posted January 24, 2011 Author Report Share Posted January 24, 2011 Saproti man viss strādā, kad noņem if (isset($_POST['action'])) {$nick = $udata->members_display_name; if ($nick == '') {unset($_POST['action']);}} Bet, kad noņem šo funkciju, tad viņš DB neliek niku, kas ir komentējis Quote Link to comment Share on other sites More sharing options...
rebuilder Posted January 24, 2011 Report Share Posted January 24, 2011 Varbūt padomā, ko tā rindiņa dara? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.