king999 Posted June 22, 2007 Report Share Posted June 22, 2007 Man ir interesanta problēma: Ir tabula kurā glabājas dati, ar noteiktiem laukiem, sākumā viss ievietojās normāli, bet tagad, kad es nodzēsu un izveidoju pa jaunam tabulu ar tādiem pašiem lauku nosaukumiem, viss it kā ievietojas, bet vienā laukā tikai ievietojas vērtība 0, lauks ir "avtor". Ieslēdzu error_reporting(E_ALL), bet neko neuzrāda. Pievienosanas forma aiza.php Link to comment Share on other sites More sharing options...
andrisp Posted June 22, 2007 Report Share Posted June 22, 2007 Pēc mysql_query uztaisi echo "INSERT INTO FTW (avtor, mudak) VALUES ('$_POST[sweet]', '$_POST[owned]')" Link to comment Share on other sites More sharing options...
king999 Posted June 22, 2007 Author Report Share Posted June 22, 2007 (edited) Kinda nesapratu ideju, es izdarīju, ka teici, bet viss ko man parādija bija šis: INSERT INTO FTW (avtor, mudak) VALUES ('ad', 'adad') ad un adad ir vērtiibas, ko pievienoju, bet DB veljoprojam ievietojas 0 ad vietā, 'ta vien šķiet, ka problēma ir kkur pie dbāzes, maybe pamēgināsu kādu 4. reizi nonest un uzlikt to db, moz tas sanāks :) Parnesu, bet bez rezultatiem, tāpat avtor ir 0 Edited June 22, 2007 by king999 Link to comment Share on other sites More sharing options...
Delfins Posted June 22, 2007 Report Share Posted June 22, 2007 (edited) ja jau nulle, tad visdrīzāk centies ievietot TEXT-u iekš INT kolonnas... LOL PS: ej labāk alu dzer Edited June 22, 2007 by Delfins Link to comment Share on other sites More sharing options...
king999 Posted June 22, 2007 Author Report Share Posted June 22, 2007 Paldies, tā arī bija problēma, bet alu dzeršu rīt ;) Link to comment Share on other sites More sharing options...
andrisp Posted June 22, 2007 Report Share Posted June 22, 2007 tochna "lol" Link to comment Share on other sites More sharing options...
Recommended Posts