Hello everyone, im having a really frustrating problem trying to make my graphs physically show the bars for the graph, from what i can see there are no problems with the code! but i get red x's rather than 2 bars being drawn. If anyone could shed some light onto this i would be much appreciated, i know my php version is compatible with graphics and i am using jpeg not gif images so really dont understand what could be wrong. the code: Any help be much appreciated! :) [code]<?php //Produce function to call graph generation file gd.php and round percentage values to 2 decimal points to displayed beside the graphs. //Then multiply the values for the two bars by 200 to determine the height in pixels of the bars. function graphic ( $blueval , $redval ){ $percentrd = round($blueval * 100,2 ); $perccentbl = round($redval * 100,2 ); $blueval = ( $blueval * 200); $redval = ( $redval * 200); echo "<table><tr><td align= \"center \" >$perccentbl%</td><td> <img src= \" gd.php?bluehg=$blueval&redhg=$redval \" height= \" 100 \" > </td><td align= \" center \" >$percentrd%</td></tr></table>"; } // Create layout for graphic display and call the graphic () function echo "<tr><td colspan=\"4\" align=\"center\"><table cellpadding=\"10\" border=\"1\" bgcolor=\"#B0E0E6\"><tr><td align=\"center\" valign=\"center\">"; graphic ( $onsiteval , $offsiteval ); echo "</td><td align=\"center\" valign=\"center\">"; ?>[/code] The gd.php file it calls below.... [code] <?php Header ( "Content-Type: image/jpeg" ); // Create a 10x200 image $im = ImageCreate ( 10, 200 ); // Create Colour Pallette $red = ImageColorAllocate ( $im, 255, 0, 0 ); $blue = ImageColorAllocate ( $im , 0 , 0 , 255 ); $grey = ImageColorAllocate ( $im , 0xC0, 0xC0 , 0xC0 ); //Fill Background of image as grey ImageFill ( $im , 0 , 0 , $grey ); ImageFilledRectangle ($im , 0 ,0, $bluehg, 200, $blue ); ImageFilledRectangle ( $im , 6, 0, $redhg, 200, $red ); Imagejpeg($im); ?>[/code] [b]EDIT BY OBER: PLEASE USE CODE TAGS TO POST CODE.[/b]