Jump to content

Limit Characters Return from mysql column


deathgame3

Recommended Posts

hi, ok im not really good wid php or mysql, just a beginner thts why i need help, currently i have this php line:

 

<?php echo $this->items[$i]->description; ?>

 

which gets the full text frm the description column for each item, NOW wht i want to do is i want to limit the return text to only 200 characters tht means i only want the first 200 characters frm the DESCRIPTION columm to show, so can u tell me wht changes i will have to make to the above statement for tht to happen? thnx i appreciate the help

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.