[PHP] truncating dilema

2002-06-13 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I'm making an idiot proof news database for a client and do not want to include a 'description' field. I had thought to return a truncated version of the actual stories as a description. It has just occured to me though that if I'm to

Re: [PHP] truncating dilema

2002-06-13 Thread Julie Meloni
NW It has just occured to me though that if I'm to list maybe 100 news NW items with descriptions it means alot of memory right because i have 100 NW items containing: NW date NW title NW text (could be any length) NW I will use

RE: [PHP] truncating dilema

2002-06-13 Thread Lazor, Ed
Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:21 PM To: php-general Subject: [PHP] truncating dilema -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I'm making an idiot proof news database for a client and do not want

Re: [PHP] truncating dilema

2002-06-13 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Julie Meloni declared You could use the substring() function in MySQL (or a similar function in your db of choice) to make the db do the work instead of PHP. Nice, I'll look it up. Cheers Julie. - -- Nick Wilson //

RE: [PHP] truncating dilema

2002-06-13 Thread David Freeman
It has just occured to me though that if I'm to list maybe 100 news items with descriptions it means alot of memory right because i have 100 items containing: date title text (could be any length) I will use substr()