Jump to content

LIMIT'ing output


DeathStar

Recommended Posts

hi there.

I want to limit an output from an query to dispaly only the first x leters.

the coulom looks like this:

|    Text            |

------------------

| Data from a post|

I think its a LIMIT command but cant find such a sql command on google ?!?

 

I'm trying to do this with:

 

$reson = mysql_query("SELECT reson FROM users LIMIT 10");
echo $reson;

Link to comment
https://forums.phpfreaks.com/topic/43834-limiting-output/
Share on other sites

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.