combobox - mysql sorunu.

cebrailSemih KILIÇ

comboboxtan seçtiğim sonucu veritabanına kaydetmek istiyorum nasıl yapabilirim?

tablo ticketitems sütunda teknisyen

<label for="type" width="100">Teknisyen Ata</label>
<select id="type" name="type">
<option value="semih" <?php if(isset($_GET['semih'])) { echo 'selected'; } ?> >semih</option>
<option value="enes" <?php if(isset($_GET['enes'])) { echo 'selected'; } ?>>enes</option>
<option value="ahmet" <?php if(isset($_GET['ahmet'])) { echo 'selected'; } ?>>ahmet</option>
<option value="serkan" <?php if(isset($_GET['serkan'])) { echo 'selected'; } ?>>serkan</option>
</select>

2012-08-23 14:40:46

Php

Birden fazla seçim varsa gelen bilgi bir dizi şeklinde olur.

foreach($_POST["type"] as $k){
     mysql_query("INSERT INTO tablo ($k)");
}

$k seçimlerden her biri.

Her programcı birgün Php yi tadacaktır
2012-08-23 17:35:08

Php

cebrailSemih KILIÇ

saolasın ama uğraşınca yaptım bişey yokmuş yine de teşekkürler tek bilgi alıyorum

2012-08-24 11:55:44

phpkodlari.com © 2009 Herkes Php öğrenecek
Eglence ve Oyun: Gamikro