problème avec substr

problème avec substr - PHP - Programmation

Marsh Posté le 05-04-2006 à 02:54:06    

Bonjour,
Je veux uiliser substr pour afficher une partie d'une donnée qui provient d‘une base de données mais je n‘y arrive pas.
voila la donnée que je veux afficher:
'.$row['formtextarea1'].'  
Est-ce que quelqu‘un pourrait m’aider
Merci

Reply

Marsh Posté le 05-04-2006 à 02:54:06   

Reply

Marsh Posté le 05-04-2006 à 09:32:44    

biying a écrit :

Bonjour,
Je veux uiliser substr pour afficher une partie d'une donnée qui provient d‘une base de données mais je n‘y arrive pas.
voila la donnée que je veux afficher:
'.$row['formtextarea1'].'  
Est-ce que quelqu‘un pourrait m’aider
Merci


Bin tu lis la doc et tu constates que:

Citation :

Description
string substr ( string string, int start [, int length] )
 
substr() returns the portion of string specified by the start and length parameters.
 
If start is non-negative, the returned string will start at the start'th position in string, counting from zero. For instance, in the string 'abcdef', the character at position 0 is 'a', the character at position 2 is 'c', and so forth.


Donc où est le problème exactement?

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed