Aktualnie wyświetla mi wyniki z tabeli X. Chciałbym, aby wyświetlało mi wyniki z tejże tabeli, ale tylko i wyłącznie wyniki, których zawartość kolumny "Z" posiada wartości "1".
Jak to zrobić?
<?php $image = imagecreatefrompng("http://adres.pl/adres.png"); $new_width = 24; $new_height = 24; $a = 14*24; $b = 4*24; $image_new = imagecreatetruecolor($new_width, $new_height); imagecopyresampled($image_new, $image, 0, 0, $a, $b, $new_width, $new_height, 24,24); imagepng($image_new); ?>
"icons";s:2:"id";i:1;s:1:"x";i:15;s:1:"y";i:2;}s:7:"
a:2:{s:6:"source";a:4:{s:4:"type";s:5:"icons";s:2:"id";i:1;s:1:"x";i:0;s:1:"y";i:0;}s:7:"graphic";a:3:{s:3:"src";s:25:"icons/Armors.png?4d91e94f";s:4:"size";a:2:{s:1:"x";i:24;s:1:"y";i:24;}s:6:"frames";a:1:{i:0;a:2:{i:0;i:0;i:1;i:0;}}}}
"icons";s:2:"id";i:1;s:1:"x";i:0;s:1:"y";i:0;
Array ( [source] => Array ( [type] => icons [id] => 1 [x] => 0 [y] => 0 ) [graphic] => Array ( [src] => icons/Armors.png?4d91e94f [size] => Array ( [x] => 24 [y] => 24 ) [frames] => Array ( [0] => Array ( [0] => 0 [1] => 0 ) ) ) )
icons [id] => 1 [x] => 0 [y] => 0 )