Jump to content

limit characters in mysql results with php


atticus

Recommended Posts

Hi,

 

I am trying to figure out the best way to limit the amount characters displayed in a result with php from a mysql database.  For example, when a user clicks on the category and a list of products are shown, I would like to display the first 150 characters from the field in the database about that product with "..." following.  I am a noob to php and I am not really sure where to start with this one.

 

Thanks in advance.

 

 

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.