Jump to content

nanou

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.cavalcarnet.com

Profile Information

  • Gender
    Female
  • Location
    Paris

nanou's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello! I'have added your : error_reporting(0); And the error message do not appear anymore even if an argument is missing. That was the goal for instance: later I'll try to understand what was the correct "semantics"! Thank you so much for your time, your patience and help! Bye Anne
  2. I show you both results, in 2 print screen 1/ local display 2/ online display I think it will be more clear : I need the implode function because all ma pages are not containing the same array values It is running in both case (only pb is that error message online) [attachment deleted by admin]
  3. Ok I have 1/ a db, called tb_aide , containing following 3 fields (id, theme, aide) with 30 records containing each an help explanation 2/ All the pages of my website are containing (or not, but when necessary) contextual id references ($theme = array(1,2,3,4) 3/ My link to the record is if (isset($theme)) { $t = implode(',',$theme); $lien = "aide.php?theme=".$t; $aide = '<a href="'.$lien.'">AIDE</a>'; } else { $aide = "";//if no array in the page because not necessary } 3/ A page aide.php containing exploding code $t = explode(',',$_GET['theme']); $n = count($t); if ($n == 1) { $where = "id = ".$t[0]; } else { $where = "id = ".$t[0]; for ($i=1;$i<$n;$i++) { $where .= " OR id=".$t[$i]; } } and request SELECT aide, theme, id FROM tb_aide WHERE id = 1 OR id=2 OR id=17 OR id=18 OR id=23
  4. Yes, in some of my pages, I have arrays ex: page1.php contains <?php $theme = array(1,2,3); page2.php contains <?php $theme = array(1,2,5,16,17,18); These are the numeric references id to the themes records id in my help database and theorecally clicking on the link containing these arrays must display the referenced result in help.php
  5. So I have followed your advice: I have turned webserver (ovh) on php 5 with a .htaccess containing just SetEnv PHP_VER 5 But same problem I'm rather sure that my array is not correctly defined : coul'd you se how set 2 arguments like this example found on php.net <?php function implode_key($glue = "", $pieces = array()) { $arrK = array_keys($pieces); return implode($glue, $arrK); } ?>
  6. I don't think so because , I've tried to turn on in php5 just the concerned 2 files (with extension php5 ) but pb is the same on line: Request is ok on both side This error message "Re: Warning: implode() [function.implode]: Invalid arguments passed in" is only displaid online (where php 4 is running) do you think that I have to turn more radically, the distant server (ovh) in php5 using a . htaccess? I thaught that it was really a question of missing argument, don't you think so?
  7. Euh non, car la requete s'execute correctement, en local et en ligne comme je vous le disais: ce n'est pas ça le problème, c'est le message d'erreur s'affiche toujours en ligne (pas en local) Re: Warning: implode() [function.implode]: Invalid arguments passed in
  8. Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 [8] => 9 [9] => 10 [10] => 11 [11] => 12 [12] => 13 [13] => 14 [14] => 15 [15] => 16 [16] => 17 [17] => 18 [18] => 19 [19] => 20 [20] => 21 [21] => 22 [22] => 23 )
  9. I've done it (thanks!): here is the result : Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 [8] => 9 [9] => 10 [10] => 11 [11] => 12 [12] => 13 [13] => 14 [14] => 15 [15] => 16 [16] => 17 [17] => 18 [18] => 19 [19] => 20 [20] => 21 [21] => 22 [22] => 23 )
  10. I'm sorry I have turn my ini config to display my errors and I don't know how desactivate this : so now your print_R show… nothing : I'm searching now how to set ini parameters by default :'(
  11. Hello, I'm just a beginner (and french sorry for my language) : have some pb with my little implode function. It's Running well on my local webserver (MAMP - PHP PHP Version 5.2.17) but when tested on ovh server (PHP4) show this error : Warning: implode() [function.implode]: Invalid arguments passed in /homez.xx/myPathHere/entete.php5 on line 6 I understand 1/ that one argument is missing but don't find the right syntax 2/ I have tried to turn this file on php5 with this extension (ovh is under php4) Here is my code in page defining the value and where stay my query (entete.php5) <?php if (isset($theme)) { $t = implode(',',$theme); $lien = "aide.php5?theme=".$t; $aide = '<a href="'.$lien.'">'.$onglet[0].'</a>'; } else { $aide = ""; } ?> Here is my code in page which show result (aide.php5) $t = explode(',',$_GET['theme']); $n = count($t); if ($n == 1) { $where = "id = ".$t[0]; } else { $where = "id = ".$t[0]; for ($i=1;$i<$n;$i++) { $where .= " OR id=".$t[$i]; } } Hope someone kindly help me : thanks in advance
×
×
  • 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.