Hello,
I don't know why my update query is not working. Seems that everything is fine and there is no compiler error. There must be some logical error that is hidden from my eyes.
Sorry about my long variables. They are in Finnish language so please don't mind.
$sairaanhoitopiiri=$_POST['sairaanhoitopiiri'];
$toimipaikkatyyppis=$_POST['toimipaikkatyyppi'];
$kuntayhtym=$_POST['kuntayhtym'];
$mukanahankkeessa=$_POST['mukanahankkeessa'];
$yksikko=$_POST['yksikko'];
$paikkakoodi=$_POST['paikkakoodi'];
$sokerirasituskokeennytteenottopa=$_POST['sokerirasituskokeennytteenottopa'];
$glukoosinmritysmenetelm=$_POST['glukoosinmritysmenetelm'];
$yhteyshenkilo=$_POST['yhteyshenkilo'];
$terveyskeskus=$_POST['terveyskeskus'];
$tkjatko=$_POST['tkjatko'];
$katuosoite=$_POST['katuosoite'];
$postiosoite=$_POST['postiosoite'];
$puhelin=$_POST['puhelin'];
$toinenyhteyshenkilo=$_POST['toinenyhteyshenkilo'];
$toim_joh_laa=$_POST['toim_joh_laa'];
$note=$_POST['note'];
$record_id=$_POST['record_ids'];
echo $toimipaikkatyyppi;
echo $record_id;
require ('access.php');
$result = mysql_query("UPDATE ktl_epshp SET sairaanhoitopiiri = $sairaanhoitopiiri,toimipaikkatyyppi=$toimipaikkatyyppi,kuntayhtym=$kuntayhtym,mukanahankkeessa=$mukanahankkeessa,yksikko=$yksikko,paikkakoodi=$paikkakoodi,sokerirasituskokeennytteenottopa=$sokerirasituskokeennytteenottopa,glukoosinmritysmenetelm=$glukoosinmritysmenetelm,yhteyshenkilo=$yhteyshenkilo,terveyskeskus=$terveyskeskus,tkjatko=$tkjatko,katuosoite=$katuosoite,postiosoite=$postiosoite,puhelin=$puhelin,toinenyhteyshenkilo=$toinenyhteyshenkilo,toim_joh_laa=$toim_joh_laa,note=$note WHERE record_id = $record_id LIMIT 1")
Any ideas and/or suggestions?
Thanks in advance,
Taz