Jump to content

browse for picture and then copy to server


sirup_segar

Recommended Posts

if ($Uplgbr=="none")

    {

      echo "idnya : $id <br>

      penerbitnya : $penerbit<br>

  temanya : $tema<br>

  tgl baru : $tgl_br<br>

  bln baru : $bln_br<br>

  thn baru : $thn_br<br>

  gambarnya : $gambar"; 

  $query_updatebook="UPDATE book SET 

                                ISBN='$ISBN', penerbit='$penerbit',

judul='$judul', pengarang='$pengarang',

gambar='$gambar',harga='$harga',genre='2',

idjenjang='1',idmpel='1',idtema='$tema'

WHERE id='$id' AND ISBN='$ISBN'";

  $query_updatedetail="UPDATE detail_bk SET ISBN='$ISBN',stok='0',

                        detail='$detail',tanggal='$tglbantu',hal='$hal',

ukuran='$ukuran',Kertas_cover='$kertas_cover',

kertas_isi='$kertas_isi',cetak_cover='$cetak_cover',

cetak_isi='$cetak_isi'

WHERE ISBN='$ISBN'";

 

            $permintaan1=mysql_query("$query_updatebook", $koneksi)

                or die ("Query Updatebook  tidak terupdate ".mysql_error());

  $permintaan2=mysql_query("$query_updatedetail", $koneksi)

                or die ("Query update detail buku tidak terupdate ".mysql_error());

 

 

 

}

 

what i'm trying to ask is , is the code for the first row correct?if nothing is entered in file field? txu

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.