Re: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread Tijnema !
> > > > > If a US company wants to use > > [EMAIL PROTECTED], then as we all > > know, management is always right -- so let's all > > change to that. Except for the companies that do > > it the other way -- ah, there I go being confused > > again. There's just no getting around it. Why > > can't

Re: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread Zoltán Németh
2007. 03. 27, kedd keltezéssel 18.57-kor Tijnema ! ezt írta: > > > >> > > >> As us USA types are told, we all have to adapt to global conventions. > > >> :-) > > > > > >... which presumably explains why the (US-owned) > > >company my wife works for has email addresses in > > >the form [EMAIL PRO

Re: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread tedd
At 6:57 PM +0200 3/27/07, Tijnema ! wrote: >> As us USA types are told, we all have to adapt to global conventions. :-) ... which presumably explains why the (US-owned) company my wife works for has email addresses in the form [EMAIL PROTECTED] Would you be equally confused by these?

Re: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread Tijnema !
>> >> As us USA types are told, we all have to adapt to global conventions. >> :-) > >... which presumably explains why the (US-owned) >company my wife works for has email addresses in >the form [EMAIL PROTECTED] >Would you be equally confused by these? I'm easily confused anyway. If people w

RE: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread tedd
At 12:54 PM +0100 3/27/07, Ford, Mike wrote: On 24 March 2007 16:28, tedd wrote: > 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > > YES this works thank nemeth: > > your welcome but please call me Zoltán ;) > (my first name is Zoltán. in Hungary we write names the

RE: [PHP] preview string with strlen PHP (help)

2007-03-27 Thread Ford, Mike
On 24 March 2007 16:28, tedd wrote: > > 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > > > YES this works thank nemeth: > > > > your welcome but please call me Zoltán ;) > > (my first name is Zoltán. in Hungary we write names the opposite > > order than anywhere else ;) s

[PHP] Re: OT: firstname-lastname fun - SOLVED :) (was: Re: [PHP] preview string with strlen PHP (help))

2007-03-26 Thread tedd
At 12:29 AM +0200 3/26/07, Zoltán Németh wrote: 2007. 03. 23, péntek keltezéssel 20.36-kor Tijnema ! ezt írta: On 3/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: > 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > > YES this works thank nemeth: > > your welcome but pl

[PHP] OT: firstname-lastname fun - SOLVED :) (was: Re: [PHP] preview string with strlen PHP (help))

2007-03-25 Thread Zoltán Németh
2007. 03. 23, péntek keltezéssel 20.36-kor Tijnema ! ezt írta: > On 3/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: > > 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > > > YES this works thank nemeth: > > > > your welcome but please call me Zoltán ;) > > (my first name is Z

Re: [PHP] preview string with strlen PHP (help)

2007-03-24 Thread tedd
2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > YES this works thank nemeth: your welcome but please call me Zoltán ;) (my first name is Zoltán. in Hungary we write names the opposite order than anywhere else ;) so that's why my mailbox is set to display 'Németh Zoltán' bu

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Richard Lynch
You don't need a function to do something repeatedly. You need some kind of loop, such as 'while', 'for' or 'foreach' Try working through a PHP / MySQL tutorial, as it will cover this. On Fri, March 23, 2007 10:55 am, Dwayne Heronimo wrote: > Dear all, > > hmm.. sorry the $previewstext thing was

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Richard Lynch
On Fri, March 23, 2007 10:18 am, Dwayne Heronimo wrote: > function previewString($showcatvar) { > > $minitxt = $showcatvar; > $len = strlen($minitxt); > > if ($len > 235) > { > $len = 235; > } > else > { > $len = $len; > } Take out this whole "else" block -- Assigning a variable to its

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Tijnema !
On 3/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > YES this works thank nemeth: your welcome but please call me Zoltán ;) (my first name is Zoltán. in Hungary we write names the opposite order than anywhere else ;) so that'

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Németh Zoltán
2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > YES this works thank nemeth: your welcome but please call me Zoltán ;) (my first name is Zoltán. in Hungary we write names the opposite order than anywhere else ;) so that's why my mailbox is set to display 'Németh Zoltán' but

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Dwayne Heronimo
YES this works thank nemeth: 235) { $len = 235; } else { $len = $len; } $newstring = substr($minitxt,0,$len); $previewtext = $newstring; return $previewtext; } ?> and to display it: cheers Dwayne ""Németh Zoltán"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED

RE: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Flavien CHANTELOT
di 23 mars 2007 16:55 À : php-general@lists.php.net Objet : Re: [PHP] preview string with strlen PHP (help) Dear all, hmm.. sorry the $previewstext thing was a typo in my mail. But yes it is working but it will only display the first record of the recordset. I have like a list for items with short

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Németh Zoltán
2007. 03. 23, péntek keltezéssel 16.55-kor Dwayne Heronimo ezt írta: > Dear all, > > hmm.. sorry the $previewstext thing was a typo in my mail. > > But yes it is working but it will only display the first record of the > recordset. I have like a list for items with short text in a page and of >

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Dwayne Heronimo
Dear all, hmm.. sorry the $previewstext thing was a typo in my mail. But yes it is working but it will only display the first record of the recordset. I have like a list for items with short text in a page and of course made a query to make the database variables available. Which where the var

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Jochem Maas
Dwayne Heronimo wrote: > Dear All, > > I am very new to programming. I want to make a preview text that would > display only a part of the text that is a text field in a database. > > //Begin Make preview string > > $minitxt = $row_show_cat['text']; > $len = strlen($minitxt); > > if ($len >

RE: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Edward Kay
> -Original Message- > From: Dwayne Heronimo [mailto:[EMAIL PROTECTED] > Dear All, > > I am very new to programming. I want to make a preview text that would > display only a part of the text that is a text field in a database. > > //Begin Make preview string > > $minitxt = $row_show_cat

RE: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Flavien CHANTELOT
-Message d'origine- De : Tijnema ! [mailto:[EMAIL PROTECTED] Envoyé : vendredi 23 mars 2007 16:26 À : Dwayne Heronimo Cc : php-general@lists.php.net Objet : Re: [PHP] preview string with strlen PHP (help) On 3/23/07, Dwayne Heronimo <[EMAIL PROTECTED]> wrote: > Dear All,

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Tijnema !
On 3/23/07, Dwayne Heronimo <[EMAIL PROTECTED]> wrote: Dear All, I am very new to programming. I want to make a preview text that would display only a part of the text that is a text field in a database. //Begin Make preview string $minitxt = $row_show_cat['text']; $len = strlen($minitxt);