Hi!
when the row['error']
is bigger than 35, the value isn't present and the result of the function is 0. can you pls tell me where is the problem?
<?php
if($row['error'] == "")
{
$error="0";
}
else
{
$error=$row['error'];
}
if($row['error'] != "")
{
if(strlen($error) > 35)
{
$error = substr($row['error'],0,32) + "...";
}
else
{
$error = $row['error'];
}
} ?>