<?
include $_SERVER['DOCUMENT_ROOT']."/includes/db.
connect.php";
$id = $_GET['id'];
$result = mysql_query("SELECT * FROM `user_data` WHERE `id` = '".$id."' LIMIT 1");
while( $row = mysql_fetch_array( $result ) )
{
$query = mysql_query("SELECT * FROM `sub_main` WHERE `user_name` = '".$row['name']."' LIMIT 1");
while( $wor = mysql_fetch_array( $query ) )
{
$bg_src = $_SERVER['DOCUMENT_ROOT']."/subrosian/im ages/square/basic.png";
$top_src = $_SERVER['DOCUMENT_ROOT']."/subrosian/im ages/square/top.png";
$bg = imagecreatefrompng( $bg_src );
$top = imagecreatefrompng( $top_src );
$font_color = imagecolorallocate( $bg, 237, 243, 74 );
$im = imagecreatetruecolor( 90, 90 );
imagerectangle( $im, 0, 0, 60, 60, $top );
imagerectangle( $im, 0, 0, 90, 90, $bg );
header("Content-type: image/png");
imagepng( $im );
imagedestroy( $im );
}
}
?>
i changed the imagefilledrectangle to imagerectangle and it still is filled black