Stretching Graphics

From: Date: Thu, 10 Aug 2000 14:11:25 +0000
Subject: Stretching Graphics
Groups: php.db 
Request: Send a blank email to php-db+get-1930@lists.php.net to get a copy of this message
I guess my first message never made it! I have created a webpage template that frames the whole page content: ----- | | | | ----- However, it is hard to figure out how much "page" to make (by stretching the side elements (|)) on the return of queried data. I have gotten it to work more or less by using mysql_num_rows() to find out how many rows were returned, and ESTIMATING and average number of pixels needed for each row...(multiplying that by the number of rows returned and adding it to the image HEIGHT) ...as you can see, the "average" size for a row is not good, because it depends on how much text there is in the field, as well as if all 3 columns returned text (if one column was null, the other can take more space on the page). The solution I have sucks, because I have to go with the largest text field as the "average" and most of the time the page is longer than it needs to be! I have looked at mysql_fetch_lengths but have no idea how it works or even if it would help... Is there an elegant way around this or should I just abandon my "framed" webpage? Any pointers/thoughts appreciated... Thanks Luis __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/

« previous php.db (#1930) next »