I'm accessing a DB(MSaccess) with php and I have a string that is truncated!!!
It seem to be trunc to 4095 character because if I do this
echo strlen($desc); it return 4095.
How I can store the content of a field that have large amount of text and display it in html page???
Thanks
Dan
Here's my code.
<?php
$t1=$_REQUEST['T1'];
$sql="SELECT [contenu].page, [contenu].Sujet, [contenu].Description, [contenu].iden, [contenu].count, [contenu].lastvisit FROM [contenu] WHERE [contenu].iden =" . $t1;
$conn=odbc_connect('intranetcgr','','');
if (!$conn)
{exit("Connection Failed: " . $conn);};
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");}
if (odbc_fetch_row($rs))
{
$page=odbc_result($rs,"page");
$sujet=odbc_result($rs,"sujet");
$desc=odbc_result($rs,"description");
echo "<strong><big>";
echo $page;
echo "</strong></big><br><br>";
echo "<strong>$sujet</strong><br><br>";
echo strlen($desc);
echo $desc;
while (odbc_fetch_row($rs))
{
$date=odbc_result($rs,"date");
$date=substr($date,0,10);
$statut=odbc_result($rs,"archive");
$iden=odbc_result($rs,"iden");
}
odbc_close($conn);
}
else {
echo "Tu me cherche Hein!!!!<br>";
echo "Attention tu vas me trouver!!!";
}
?>
It seem to be trunc to 4095 character because if I do this
echo strlen($desc); it return 4095.
How I can store the content of a field that have large amount of text and display it in html page???
Thanks
Dan
Here's my code.
<?php
$t1=$_REQUEST['T1'];
$sql="SELECT [contenu].page, [contenu].Sujet, [contenu].Description, [contenu].iden, [contenu].count, [contenu].lastvisit FROM [contenu] WHERE [contenu].iden =" . $t1;
$conn=odbc_connect('intranetcgr','','');
if (!$conn)
{exit("Connection Failed: " . $conn);};
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");}
if (odbc_fetch_row($rs))
{
$page=odbc_result($rs,"page");
$sujet=odbc_result($rs,"sujet");
$desc=odbc_result($rs,"description");
echo "<strong><big>";
echo $page;
echo "</strong></big><br><br>";
echo "<strong>$sujet</strong><br><br>";
echo strlen($desc);
echo $desc;
while (odbc_fetch_row($rs))
{
$date=odbc_result($rs,"date");
$date=substr($date,0,10);
$statut=odbc_result($rs,"archive");
$iden=odbc_result($rs,"iden");
}
odbc_close($conn);
}
else {
echo "Tu me cherche Hein!!!!<br>";
echo "Attention tu vas me trouver!!!";
}
?>