I'm using PHP to generate an XML file, from the SQL database, but it's not displaying all the data. It cuts if off and only displays about 1/3 of it (cuts off after 3998 characters). Do I need to adjust my code, or does the php.ini file need adjusted somehow maybe? It's on a windows server though, and I don't see a php.ini file available to me anywhere...
MY CODE:
<?php
include('admin/functions.php');
$ConnString="DRIVER={SQL Server};SERVER=xxxxxx;DATABASE=xxxxxx";
$DB_User="xxxxxx";
$DB_Passwd="xxxxxxx";
$QueryString="SELECT id, Bio FROM Biography";
$Connect = odbc_connect( $ConnString, $DB_User, $DB_Passwd );
$Result = odbc_exec( $Connect, $QueryString );
$nl = "\r\n";
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" . $nl;
echo "<ROOT>" . $nl;
while($r = odbc_fetch_array( $Result ) )
{
echo '<news id="' . $r['id'] . '">' . $nl;
echo '<body><![CDATA[' . stripslashes2($r['Bio']) . ']]></body>' . $nl;
echo '</news>' . $nl;
}
echo "</ROOT>" . $nl;
odbc_free_result( $Result );
odbc_close( $Connect );
?>