arvix Posted March 12, 2008 Report Share Posted March 12, 2008 sveiki ir kods $con = mysql_connect("$dbhost","$dbuname","$dbpass"); mysql_select_db("db_name", $con); mysql_query("UPDATE teksti SET text = '$_POST[text]' WHERE id = '$_GET[id]'"); mysql_close($con); Lietojot IE viss ir ok lietojot firefox db tiek ievietots tuksums. Post dati lidz sinm failam tiek. Link to comment Share on other sites More sharing options...
Aikss Posted March 12, 2008 Report Share Posted March 12, 2008 Es gan mainīgos ievadu šādi datubāzē! Izmantoju FireFox! " UPDATE teksti SET text = ' " . $_POST[text]."' WHERE id = ' " .$_GET[id] . " ' " Link to comment Share on other sites More sharing options...
andrisp Posted March 12, 2008 Report Share Posted March 12, 2008 forma visticamāk līka. Parādi formas kodu. Link to comment Share on other sites More sharing options...
Aleksejs Posted March 12, 2008 Report Share Posted March 12, 2008 Kas notiek, ja pirms vaicājuma izpildes to izdrukā? $vaicajums="UPDATE teksti SET text = '$_POST[text]' WHERE id = '$_GET[id]'"; echo $vaicajums; mysql_query($vaicajums); Link to comment Share on other sites More sharing options...
arvix Posted March 12, 2008 Author Report Share Posted March 12, 2008 mistika kautkada..... Ari si sintakse nepalidzeja :( es nesaprotu kas notiek. :( Link to comment Share on other sites More sharing options...
Aleksejs Posted March 12, 2008 Report Share Posted March 12, 2008 Nu bet ko izdrukā?! Link to comment Share on other sites More sharing options...
arvix Posted March 12, 2008 Author Report Share Posted March 12, 2008 formai nevajadzetu but ne vanas jo echo Psot['text'] viss tiek izvadits pareizi..... Link to comment Share on other sites More sharing options...
arvix Posted March 12, 2008 Author Report Share Posted March 12, 2008 izdrukajas : "UPDATE teksti SET text = 'kautkas' WHERE id = '4'" :) Link to comment Share on other sites More sharing options...
Aleksejs Posted March 12, 2008 Report Share Posted March 12, 2008 Un tās lapas HTML kodu validators atzīst par labu esam, ja? Link to comment Share on other sites More sharing options...
Aikss Posted March 12, 2008 Report Share Posted March 12, 2008 (edited) Tiešām mistika! Kā tā var būt, ka IE ievada, bet FF nē! Tad jau sanāk, ka kods strādā, bet kautkas FF ne tā? Mainīgais $dbuname vai $dbname! Un ko par to saka Opera? Edited March 12, 2008 by Aikss Link to comment Share on other sites More sharing options...
arvix Posted March 12, 2008 Author Report Share Posted March 12, 2008 ar operu ir kartiba... Link to comment Share on other sites More sharing options...
werd Posted March 12, 2008 Report Share Posted March 12, 2008 (edited) <?php //connect parametri $server="*******"; $username="*******"; $password="*******"; $db="*******"; //pats connects $dbh = mysql_connect($server, $username, $password) or die("Unable to connect to MySQL"); mysql_select_db($db) or die(mysql_error()); //nodefine ka mainigos $tavs_mainigais=$_POST['text']; $tavs_id=$_GET['id']; $update= mysql_query("UPDATE galerija SET kkas=$tavs_mainigais WHERE id=$tavs_id"); mysql_close($dbh); P.S man uz FF sis kods strādā Edited March 12, 2008 by phpjanis Link to comment Share on other sites More sharing options...
Aikss Posted March 12, 2008 Report Share Posted March 12, 2008 Un citas darbības(insert, select) ar DB iet uz FF? Ja uz IE un Operas iet, bet uz FF nē tad var meiģināt pārinstalēt FF, varbūt kas noplīsis! Link to comment Share on other sites More sharing options...
arvix Posted March 12, 2008 Author Report Share Posted March 12, 2008 parejais itka strada... ari uz ctiwm kompjiem firefoxaa neatraadaa Link to comment Share on other sites More sharing options...
werd Posted March 12, 2008 Report Share Posted March 12, 2008 (edited) Un citas darbības(insert, select) ar DB iet uz FF? Topica autors teica, ka lietojot firefox db tiek ievietots tuksums. tatad sql izpildas Edited March 12, 2008 by phpjanis Link to comment Share on other sites More sharing options...
Recommended Posts