hEiti Posted June 19, 2008 Author Report Share Posted June 19, 2008 (edited) <form action="products_insert.php" method="post"> Grupa<br> <select name="izvelne" method=""> <option value="gr" selected>GR Series</option> <option value="grs">GRS Series</option> <option value="hr">Hr Series</option> <option value="gps">GPR Series</option> <option value="gir">GIR Series</option> <option value="cpr">CPR Series</option> <option value="brm">BRM Series</option> <option value="brh">BRH Series</option> <option value="ha">HA Series</option> </select> <br> Modelis<br> <input type="text" name="modelis" /> <br> Celtspēja<br> <input type="text" name="celtspeja" /> <br> <input type="submit" value="Pievienot" /></form> ta tas varetu izskatities pec mana labojuma.. ir vell kkas ? man jau reali vajag palidzibu :D salasijos neta pa shito erroru un nekadigi netieku gala :( Edited June 19, 2008 by hEiti Link to comment Share on other sites More sharing options...
bubu Posted June 19, 2008 Report Share Posted June 19, 2008 Vai tu pats saproti savu kodu, vai nē? Ko tavā kodā tavuprāt nozīmē $_POST[serija] ? T.i. - ko tas dara, ko atgriež un ko tam īsti vajadzētu darīt? Link to comment Share on other sites More sharing options...
andrisp Posted June 19, 2008 Report Share Posted June 19, 2008 hEiti, palasi vēlreiz tā kārtīgāk par html formām. Link to comment Share on other sites More sharing options...
hEiti Posted June 19, 2008 Author Report Share Posted June 19, 2008 (edited) Liels paldies :P palasiju un atradu ari pats savu prob :P laikam submit pogas nak profilaktiski tikai pa labu :) tagad man tik talak 1 apakshjautajums radies.. Situacija: No lapas1 uz lapu2 parsutas $_post vertiba lapa 2 paradas saturs atkarigs no $_post vertibas .. bet tagad kad uzspiez piem delete tiek iekljauta lapa3 .. bet lidz tai neaiziet vertiba $_post.. kadi ir ieteikumi ka es varu panakt kad tads kads $_post ienak 2 lapa tiek padots ari uz 3so lapu ? izdomats - sesijas :) Edited June 19, 2008 by hEiti Link to comment Share on other sites More sharing options...
andrisp Posted June 19, 2008 Report Share Posted June 19, 2008 Padod caur URL (blabla.php?blabla=desa). Un tad iekš tās trešās lapas $_GET['blabla'] Link to comment Share on other sites More sharing options...
hEiti Posted June 19, 2008 Author Report Share Posted June 19, 2008 $sql="DELETE FROM $_GET[list]_produkti WHERE id='$id'"; $result=mysql_query($sql); echo mysql_error(); 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 '?id=23_produkti WHERE id=''' at line 1ERROR Nu andri shoreiz atkal jau netieku gala.. varbut saki lasam vielu vai ari dod padomu :) bet lapas adrese kad ieiet 3 lapa ir: delete_ac.php?list=GPR?id=23 taka lidz tam strada :) Link to comment Share on other sites More sharing options...
andrisp Posted June 19, 2008 Report Share Posted June 19, 2008 delete_ac.php?list=GPR?id=23 ? Link to comment Share on other sites More sharing options...
hEiti Posted June 20, 2008 Author Report Share Posted June 20, 2008 (edited) $_GET['list'] vertiba ir pieskirta parbaudiju ar print.. bet neizdodas vinju ievadit $sql="DELETE FROM $_GET['list;]_produkti WHERE id='$id'"; ---->$_GET['list']<----- te :(:( itka pat ir ieslegts error reportings bet paradas balta lapa .. lai gan ja notiek kluda jarada error bet ja ok tad sucs.. :( Edited June 20, 2008 by hEiti Link to comment Share on other sites More sharing options...
xPtv45z Posted June 20, 2008 Report Share Posted June 20, 2008 Varbūt balta lapa parādās, jo nekas netiek izvadīts uz ekrāna? Link to comment Share on other sites More sharing options...
andrisp Posted June 20, 2008 Report Share Posted June 20, 2008 $sql="DELETE FROM $_GET['list;]_produkti WHERE id='$id'" hEiti, tu tieshaam neredzi, kur tur ir kljuuda ? Link to comment Share on other sites More sharing options...
hEiti Posted June 20, 2008 Author Report Share Posted June 20, 2008 $sql="DELETE FROM $_GET['list;]_produkti WHERE id='$id'" hEiti, tu tieshaam neredzi, kur tur ir kljuuda ? Ja tu runa par ist;] atvainojos.. ta bija mana drukas kljuda nevis koda :P ta nav ista :) Link to comment Share on other sites More sharing options...
Klez Posted June 20, 2008 Report Share Posted June 20, 2008 tad kopee kodu nevis paarraksti .. paarrakstot var rasties citas kljuudas ... Link to comment Share on other sites More sharing options...
Recommended Posts