SVG BLANK !

I pass a record number from one page1 to page2.
The corresponding SVG code from MySQL is displayed in PHP in page2. If the svg code to be retrieved is small, then the image is displayed correctly. (So, no probs in Passing values!)
If the svg code is 9Kb or more, I GET A BLANK PAGE !!!
 
 

This is page2 for a better idea:
<? 
header("Content-type: image/svg+xml"); 
print('<?xml version="1.0" encoding="iso-8859-1"?>'); 
?> 
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd"> 
<? 
print ('<svg xml:space="preserve" x="-4.72439in" y="3.5434in" width="9.44879in" height="7.0868in" style="shape-rendering:geometricPrecision; text-rendering:geomet 
ricPrecision; image-rendering:optimizeQuality" viewBox="-4724 0 9448 7086" zoomAndPan="disable">'); 
// Connection 
$conec = mysql_connect("localhost","admin","psswd"); 
mysql_select_db("vgsvg",$conec); 
// Query 
$query1 = ("select img from pict where id='$rno'"); 
$res1 = mysql_query($query1,$conec); 
if (!$res1) 
die("Query1 Failed!"); 
while ($row = mysql_fetch_array ($res1)) 
$mycopy1=$row[img]; 
mysql_free_result ($res1); 
// Display of SVG 
print $mycopy1; 
print ('</svg>'); 
?> 
 
Should I give any specification in the Doctype? 
I've tried several Doctypes, in vain. Please Help!  
 
Shwathi


Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.

Received on Monday, 8 March 2004 04:15:56 UTC