jauninjais Posted May 31, 2006 Report Share Posted May 31, 2006 veel viens jautaajums, lai updatotu ieraxtu datubaazee, vinsh saaakumaa tachu jaaizvada pienjemsim textarea? bet kaa to izdariit? kaa piemeeram ielikt textarea tekstu no datubaazes kolonnas zinja ar id 123? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 31, 2006 Report Share Posted May 31, 2006 (edited) jauninjais --> RTFM !!! Palasi tachu manuali... edit: $result= mysql_query('SELECT ieraksts FROM tabula WHERE id=123'); $row=mysql_fetch_array($result); echo '<textarea name="vards">'.$row['ieraksts'].'</textarea>'; Edited May 31, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
jauninjais Posted May 31, 2006 Author Report Share Posted May 31, 2006 (edited) vai tad manuaalii raxtiis, vai var to zinju uzzinaat kaut ka nenolasot id un peec tam mekleejot datu baazee konkreeto ieraxtu? edit: sapratu. Edited May 31, 2006 by jauninjais Link to comment Share on other sites More sharing options...
jauninjais Posted June 1, 2006 Author Report Share Posted June 1, 2006 (edited) veel taads jauataajums par to update, es izmeegjinaaju viskaut ko, bet ieraxtu neupdato, vai tad shaadi nav pareizi? paroles, datubaazes, lauki ir pareizi. <? $message="labotā ziņa"; $konekcija=mysql_connect('127.0.0.1','d-baaze','parole') or die ("Datubāzei pieslēgties neizdevās"); mysql_select_db('d-baaze',$konekcija); $vaicajums2=("UPDATE `info` SET `zinja`='$message' WHERE `id`='151'"); mysql_close($konekcija); ?> Edited June 1, 2006 by jauninjais Link to comment Share on other sites More sharing options...
alins Posted June 1, 2006 Report Share Posted June 1, 2006 kur tev ir mysql_query() ??? $vaicajums2 = mysql_query("UPDATE info SET zinja='$message' WHERE id=151"); Link to comment Share on other sites More sharing options...
jauninjais Posted June 1, 2006 Author Report Share Posted June 1, 2006 uj, thanks Link to comment Share on other sites More sharing options...
Recommended Posts