|
|
|
|
$client[$i] = strval($tmp2[$i]['TSIDES_0']); echo $client[0];
je comprends rien :
print_r($client); donne : "Array ( [0] => OPOPOP ) " (bon pas tout à fait c'est pas "opopop" le client, mais secret professionel ;-) ) et echo ou print ($client[0]) donne toujours "????????" sauf quand je fais un print_r($tmp2); avant ou après. bug de php ou bug de moi ? opopop :-P |
<< Bug de toi >> Elémentairemon cher watson !
Tu veux pas mettre un peu plus de ton code pour qu'on sache cu qu'est par exmeple ca : $tmp2[$i]['TSIDES_0']); :) ~ iclic @ gauch,iclic, iclic @ droate, iclic, iclic et ya pas de bôg môsieu ! ~ |
Voili voilou Sherlock Holmes :
$test=TRUE;
$client = array("");
for($i=0; $i < ($n); $i++)
{
$this->base->RecupData("ITMMASTER", array("TSICOD_1"), $tmp, $nb, "ITMREF_0='".$det_pal[$i]['ITMREF_0']."'","",FALSE);
$this->base->RecupData("TABSTTITM",array("TSIDES_0"), $tmp2, $nb, "TSIGRP_0='2' AND TSICOD_0='".$tmp[0]['TSICOD_1']."'","",FALSE);
$client[$i] = strval($tmp2[$i]['TSIDES_0']);
if ($i != 0)
{
if ($client[$i]!=$client[$i-1])
{
$test=FALSE;
break;
}
}
if ($test==TRUE)
{
$client[0] = strtoupper($client[0]);
echo $client[0];
}
en fait je viens de remarquer que quand j'enlève la fonction strtoupper(), la chaine s'affiche correctement. Mais je veux le mettre en majuscule moi !!!! et po envie de me taper la fonction à la main ! opopop :-P |
|
bizarre...
~ iclic @ gauch,iclic, iclic @ droate, iclic, iclic
et ya pas de bôg môsieu ! ~ |
| 25/02 15h16 | Sed - Introduction à SED | Sed |
| 27/10 00h37 | [PHP] Les ressemblances à ne pas confondre | PHP |
| 05/05 16h31 | Utiliser des accents et autres caractères spéciaux | Programmation |
| 21/04 12h07 | Connexion à une base Oracle en php | Oracle |
| 03/11 17h45 | [PHP] Vérifier une adresse électronique (format du mail) | PHP |
| 18/10 14h11 | Php chaines caracteres decimal | 0 |
| 05/09 12h52 | Php chaines caracteres | 6 |
| 26/07 10h23 | Opérations sur chaîne caractère PHP | 6 |
| 25/07 11h22 | Probleme PHP chaine de caractere | 4 |
| 28/01 15h19 | [PHP]Chaines des caractères avec pts virgules | 6 |
![]() | PHP Edit - PHPEdit est un environnement de développement intégré (IDE) sous Windows pour le langage PHP. Il offre un grand nombre de... | Catégorie: PHP Licence: Freeware/gratuit |
![]() | Ant Renamer - ANT Renamer permet de renommer un grand nombre de fichiers et dossiers en quelques clics. Il ne fait que modifier les noms... | Catégorie: Gestion de fichiers Licence: Freeware/gratuit |
![]() | PSPad - PSPad est un excellent éditeur de texte. Il est utile pour travailler sur du simple texte, mais aussi sur du HTML, CSS,... | Catégorie: Développement Licence: Freeware/gratuit |
![]() | WAMP Server - WAMP5 (WAMP signifiant Windows Apache Mysql PHP) est une plateforme de développement Web sous Windows. Il vous permet de... | Catégorie: Serveurs Licence: Freeware/gratuit |
![]() | God of War: Chains | Catégorie: Jeu vidéo PSP | 39.89 € PriceMinister |
![]() | Kingdom Hearts : Chain | Catégorie: Jeu vidéo Gameboy Advance | 34.45 € Amazon.fr |
![]() | Chaintech MK8T890 | Catégorie: Carte mère | 65.00 € PriceMinister |
![]() | Chaintech GeForce 6800LE 128 | Catégorie: Carte graphique |