Prev | Current Page 216 | Next

Marc Delisle

"Mastering phpMyAdmin 2.11 for Effective MySQL Management"


If the text for the link is too long, the transformation does not occur. In this case,
we can click the Full Texts icon to reveal the complete link. Then, we'll see the
image altogether.
Chapter 16
[ 247 ]
Other transformations like image/jpeg: inline and image/png: inline specify
the exact MIME type of the image; in these cases, phpMyAdmin uses GD2 library
functions for the thumbnail generation. However, the link contained in a text/
plain: imagelink transformation may refer to any browser-supported image type,
so phpMyAdmin just displays a resized image with an HTML img tag and its width
and height attributes, according to the size options defined in the transformation. To
see the original image, we can click either the link or the thumbnail.
Preserving the Original Formatting
Normally, when displaying text, phpMyAdmin does some escaping of special
characters. For example, if we enter This book is good in the description
field for one book, we would normally see This book is good when
browsing the table. However, if we use the transformation text/plain: formatted for
this field, we get the following while browsing:
In this example, the results are correct. However, other HTML entered in the data
field could produce surprising results (including invalid HTML pages). For example,
because phpMyAdmin presents results using HTML tables, a non-escaped
tag in the data field would ruin the output.


Pages:
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228