Re: [PHP] Get First 20 Characters of a Variable or Database Entry

2004-01-21 Thread John Nichel
Dimitri Marshall wrote: Hi there, How would I go about getting the first 20 characters of a varibale or database entry. The situation is this, I created a calendar where users can post events and on the date instead of just a number (the number of events and the date), I would like to show the fi

Re: [PHP] Get First 20 Characters of a Variable or Database Entry

2004-01-21 Thread John W. Holmes
Dimitri Marshall wrote: How would I go about getting the first 20 characters of a varibale or database entry. The situation is this, I created a calendar where users can post events and on the date instead of just a number (the number of events and the date), I would like to show the first 20-30 c

Re: [PHP] Get First 20 Characters of a Variable or Database Entry

2004-01-21 Thread Raditha Dissanayake
I belive the left() function is mysql is what you are looking for. Dimitri Marshall wrote: Hi there, How would I go about getting the first 20 characters of a varibale or database entry. The situation is this, I created a calendar where users can post events and on the date instead of just a num

Re: [PHP] Get First 20 Characters of a Variable or Database Entry

2004-01-21 Thread Matt Matijevich
http://us2.php.net/substr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php