RE: [PHP] Button Creation Backfiring[Scanned]

From: Date: Fri, 09 May 2003 09:09:18 +0000
Subject: RE: [PHP] Button Creation Backfiring[Scanned]
Groups: php.general 
Request: Send a blank email to php-general+get-146984@lists.php.net to get a copy of this message
Chris, I've only quickly glanced at this but I think you're missing a closing bracket at the end of the line prior to the one the error message refers to. if ($height_text > $image_height_wo_margins || $width_text > $image_width_wo_margins) { //No readable font size will fit on button echo 'Text given is too large for button'; } else { //The font size fits //Now where to put it $text_x = $image_width/2.0 - $width_text/2.0; $text_y = $image_height/2.0 - $height_text/2.0 } HTH, Michael Egan

« previous php.general (#146984) next »