problem with values in php - begginer

Atterobut

New Member
when the \[code\]row['error']\[/code\] 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?\[code\]<?phpif($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']; }} ?>\[/code\]
 
Back
Top