Showing partial text from DB cell

A

Anonymous

Guest
Once you have the data from the db push it into a command - substr which returns a substring. For 71 characters :-

echo substr($dbdata,0,71);

This will return the first 71 chars from the variable $dbdata
 
Back
Top