Jump to content
php.lv forumi

update ieraxtu


jauninjais

Recommended Posts

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 by Grey_Wolf
Link to comment
Share on other sites

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 by jauninjais
Link to comment
Share on other sites

×
×
  • Create New...