Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/admin/dostawa.php |
<?php
include('config.php');
$obj = new Admin();
$dane = $obj->setDate('kupione',$_POST['id']);
$tmp = explode('<br>',$dane['adres']);
if(count($tmp)==3){
$dane2[]=$tmp[0];
$dane2[]=trim(substr($tmp[1],0,6));
$dane2[]=trim(substr($tmp[1],6));
$dane2[]='';}
elseif(count($tmp)==5){
$dane2[]=$tmp[1];
$dane2[]=trim(substr($tmp[2],0,6));
$dane2[]=trim(substr($tmp[2],6));
$dane2[]='';}
else{
$dane2[]='';
$dane2[]='';
$dane2[]='';
$dane2[]=str_replace('Paczkomat ','',$tmp[0]);}
$dane2[]=$dane['imie'];
$dane2[]=$dane['tel'];
$dane2[]=$dane['email'];
echo(json_encode($dane2));
?>