Jump to content

washo4evr

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

washo4evr's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I'm working on a project that takes a CSV (poorly formated unfortunately) and turns it in charts. What should I use? Maani XML/PHP, Pcharts, ...? There are so many possibilities, I'm lost. What do you guys recommend? thanks (if maani is any good, how do I convert something like Array ( [0] => Array ( [0] => Array ( [0] => FORMULE ENTREE+PLAT [1] => 24 ) [1] => Array ( [0] => FORMULE PLAT+DESSERT [1] => 34 ) ) [1] => Array ( [0] => Array ( [0] => ASSIETTE DE FRITES [1] => 2 ) [1] => Array ( [0] => ASSIETTE MIXTE [1] => 1 ) [2] => Array ( [0] => SALADE AUVERGNATE [1] => 8 ) [3] => Array ( [0] => SALADE CHARENTAISE [1] => 17 ) [4] => Array ( [0] => SALADE DU BURON [1] => 10 ) [5] => Array ( [0] => SALADE FERMIERE [1] => 3 ) ) into a XML file?
  2. Awesome. I will research that. Thanks
  3. Hi, thank you very much for your quick reply. I know the formating isn't good to begin with... It is being automatically generated by a software my company didn't write. Therefore, we can't change it And, since I did some C++ a long time ago, my boss wants me to make a website that will get data from a FTP server, sort everything, generate charts and let users compare figures/results. With your code, I'll get an array, right? How should I deal with it afterwards? Thanks again
  4. Hello, I'm working on a project that will let users access a website to view results. I getting via a FTP server CSV files. Files look like that (in French): "ARTICLES; BOISSONS 5.50% ; 1; ORANGINA ; 2.50; 2; PERRIER ; 5.00; 2; SCHWEPPES ; 5.00; ----------------------------------------; 5; BOISSONS 5.50% ; 12.50; RATIO %; 6.94; BOISSONS 19.60% ; 4; PELFORTH ; 10.00; 1; CHIVAS ; 7.00; 1; LIQUEUR ; 5.50; ----------------------------------------; 6; BOISSONS 19.60% ; 22.50; RATIO %; 12.50; RESTAURANT ; 1; BOUILLON POT AU FEU ; 7.00; 2; JAMBON D'AUVERGNE ; 20.00; 2; TERRINE PIED DE PORC; 16.00; 1; CASSOULET ; 20.00; 2; CONFIT DE CANARD ; 46.00; 1; CUISSE DE LAPIN ; 18.00; 1; MOURTAYROL ; 18.00; ----------------------------------------; 10; RESTAURANT ; 145.00; RATIO %; 80.56; ----------------------------------------; TOTAL ; ARTICLES ; 180.00; ------------------------------------------; ------------------------------------------; ------------------------------------------; REGLEMENTS; 2; ESPECES ; 109.50; 1; CARTE ; 70.50; ------------------------------------------; TOTAL ; REGLEMENTS; 180.00;" Basically, I'm trying to write code to "sort" each categorie (ARTICLES, REGLEMENTS....) Here is what I'd like to get: A B C D E ARTICLES; BOISSONS 5.50% ; 1; ORANGINA ; 2; PERRIER ; 2; SCHWEPPES ; BOISSONS 19.60% ; 4; PELFORTH ; 1; CHIVAS ; 1; LIQUEUR ; RESTAURANT ; 1; BOUILLON POT AU FEU ; 2; JAMBON DE DINDE ; 2; TERRINE PIED DE PORC; 1; CASSOULET ; 2; CONFIT DE CANARD ; 1; CUISSE DE LAPIN ; 1; MOURTAYROL ; TOTAL ; 5; BOISSONS 5.50% ; 12.50; 6; BOISSONS 19.60% ; 22.50; 10; RESTAURANT ; 145.00; REGLEMENTS; 2; ESPECES ; 109.50; 1; CARTE ; 70.50; A, B, D only names C, E only numbers These datas will be used to generate pie charts Thanks for your attention
  5. Hi all, I decided to start playing with PHP. I hope it's not too hard I did mainly C/C++ back in the day Looking forward to codind with you all. Florent
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.