Mam taki kod:
<?php $id = $_GET['id']; require_once("config.php"); $string = $player['name']; $string2 = $player['exp']; $im = imagecreatefrompng("tlo.png"); $orange = imagecolorallocate( $im, 0, 0, 0 ); $px = ( imagesx( $im ) ) / 40; imagestring( $im, 25, $px, 0, $string, $orange ); imagestring( $im, 25, $px, 20, $string2, $orange ); imagepng( $im ); imagedestroy( $im ); ?>
I On wyciąga z bazy dane i wyświetla je na obrazku, ale wszystko co jest w zmiennej $string2 się nie wyświetla, ale to co jest w zmiennej $string się wyświetla (dane z bazy według id) Jeżeli wszystko jest tak:
$string = $player['name'].$player['exp'];
to dane się normalnie wyświetlają, ale obok siebie, a ja chcę aby wyświetlało się jedno pod drugim (na obrazku oczywiście).