kaanfakili
Öğrenci
- Katılım
- 15 Aralık 2013
- Mesajlar
- 1
- Reaksiyon puanı
- 0
- Puanları
- 0
Merhaba, aşağıdaki veriyi veritabanına bağlamayıp ekrana yazdırabiliyorken, veritabanına bağlayınca veriyi çekemiyorum. Yardımcı olursanız sevinirim.
Bağlanmamış hali:
Bağlanmış ama veri çekmeyen hali:
Bağlanmamış hali:
PHP:
<?php
header("Content-type:text/html;charset=utf8");
$yazi='a:9:{s:23:"payment_custom_firmaadi";a:9:{s:2:"id";s:23:"payment_custom_firmaadi";s:5:"label";s:15:"Şirket / Firma";s:5:"value";s:0:"";s:6:"values";a:0:{}s:4:"text";s:0:"";s:4:"type";s:4:"text";s:3:"set";s:5:"order";s:4:"from";s:17:"checkout_customer";s:8:"field_id";s:15:"custom_firmaadi";}s:27:"payment_custom_vergidairesi";a:9:{s:2:"id";s:27:"payment_custom_vergidairesi";s:5:"label";s:13:"Vergi Dairesi";s:5:"value";s:0:"";s:6:"values";a:0:{}s:4:"text";s:0:"";s:4:"type";s:4:"text";s:3:"set";s:5:"order";s:4:"from";s:17:"checkout_customer";s:8:"field_id";s:19:"custom_vergidairesi";}s:22:"payment_custom_vergino";a:9:{s:2:"id";s:22:"payment_custom_vergino";s:5:"label";s:15:"Vergi Numarası";s:5:"value";s:0:"";s:6:"values";a:0:{}s:4:"text";s:0:"";s:4:"type";s:4:"text";s:3:"set";s:5:"order";s:4:"from";s:17:"checkout_customer";s:8:"field_id";s:14:"custom_vergino";}s:23:"shipping_custom_aliciad";a:9:{s:2:"id";s:23:"shipping_custom_aliciad";s:5:"label";s:23:"Alıcı Adı ve Soyadı";s:5:"value";s:21:"Şemsettin Şemsettin";s:6:"values";a:0:{}s:4:"text";s:21:"Şemsettin Şemsettin";s:4:"type";s:4:"text";s:3:"set";s:5:"order";s:4:"from";s:16:"checkout_address";s:8:"field_id";s:14:"custom_aliciad";}s:24:"shipping_custom_alicitel";a:9:{s:2:"id";s:24:"shipping_custom_alicitel";s:5:"label";s:11:"Alıcı Tel";s:5:"value";s:10:"5055555555";s:6:"values";a:0:{}s:4:"text";s:10:"5055555555";s:4:"type";s:4:"text";s:3:"set";s:5:"order";s:4:"from";s:16:"checkout_address";s:8:"field_id";s:15:"custom_alicitel";}s:26:"shipping_custom_aliciadres";a:9:{s:2:"id";s:26:"shipping_custom_aliciadres";s:5:"label";s:13:"Alıcı Adres";s:5:"value";s:35:"Alıcı deneme adresi şinasi sokak";s:6:"values";a:0:{}s:4:"text";s:35:"Alıcı deneme adresi şinasi sokak";s:4:"type";s:8:"textarea";s:3:"set";s:5:"order";s:4:"from";s:16:"checkout_address";s:8:"field_id";s:17:"custom_aliciadres";}s:28:"shipping_custom_isimgozuksun";a:9:{s:2:"id";s:28:"shipping_custom_isimgozuksun";s:5:"label";s:31:"Kartta isminiz gözüksün mü?";s:5:"value";s:6:"value1";s:6:"values";a:2:{s:6:"value1";s:11:"Gözüksün";s:7:" value2";s:12:"Gözükmesin";}s:4:"text";s:11:"Gözüksün";s:4:"type";s:5:"radio";s:3:"set";s:5:"order";s:4:"from";s:16:"checkout_address";s:8:"field_id";s:19:"custom_isimgozuksun";}s:24:"shipping_custom_kartismi";a:9:{s:2:"id";s:24:"shipping_custom_kartismi";s:5:"label";s:21:"Karta yazılacak isim";s:5:"value";s:19:"şinasi şsemsettin";s:6:"values";a:0:{}s:4:"text";s:19:"şinasi şsemsettin";s:4:"type";s:4:"text";s:3:"set";s:5:"order";s:4:"from";s:16:"checkout_address";s:8:"field_id";s:15:"custom_kartismi";}s:26:"shipping_custom_martmesaji";a:9:{s:2:"id";s:26:"shipping_custom_martmesaji";s:5:"label";s:12:"Kart Mesajı";s:5:"value";s:20:"çok özür dilerim.";s:6:"values";a:0:{}s:4:"text";s:20:"çok özür dilerim.";s:4:"type";s:8:"textarea";s:3:"set";s:5:"order";s:4:"from";s:16:"checkout_address";s:8:"field_id";s:17:"custom_martmesaji";}}';
$yazs=unserialize($yazi);
$goster.='
Alıcı Ad : '.$yazs["shipping_custom_aliciad"]["value"].' <br/>
Alıcı Tel : '.$yazs["shipping_custom_alicitel"]["value"].' <br/>
Kart ismi : '.$yazs["shipping_custom_kartismi"]["value"].' <br/>
Kart ismi : '.$yazs["shipping_custom_isimgozuksun"]["value"].' <br/>
Kart ismi : '.$yazs["shipping_custom_martmesaji"]["value"].' <br/>
';
echo $goster;
?>
Bağlanmış ama veri çekmeyen hali:
PHP:
$SimleS = mysql_query("SELECT * from simple_custom_data order by object_id");
while($SimleV=mysql_fetch_array($SimleS)){
$yazi=$SimleV['data'];
$yazs=unserialize($yazi);
$a = $yazs["shipping_custom_aliciad"]["value"];
echo 'Alıcı Ad : '.$a.'<br>';