Subject: ch16 gd based interactive mall
Posted By: keng Post Date: 9/19/2003 8:39:03 AM
Has anyone got this project working? My system doesn't give the graphic for mall2.php or mall3.php.
However, I do get the expected results for mall.php [txt]
And I believe gd is working ok because drawmall.php works.

My error tracing hasn't got me far..
Ken

Reply By: keng Reply Date: 9/20/2003 6:10:02 AM
I have made progress:
In mall2.php, the first line below was missing, so the ImageFill() couldn't work
  $blue=ImageColorAllocate($image,100,100,255);// was missing-kg
  ImageFill($image, $center[0], $center[1], $blue);

Also, I added the first of these lines, at the top
  $show=$_GET['show'];
  if ($show!="") {

Additional comment-this example project is a neat use of gd graphics, using ImageFill() to present data graphically. I recommend it.
(In a couple of weeks -when I get back from a holiday-I'll try to get the rest of the interactive map ideas working)
Ken
Ken


Go to topic 4350

Return to index page 1042
Return to index page 1041
Return to index page 1040
Return to index page 1039
Return to index page 1038
Return to index page 1037
Return to index page 1036
Return to index page 1035
Return to index page 1034
Return to index page 1033