Bonjour ,
j'ai une fonction qui contient une boucle while et une condition , puis 2 ligne de code :
je voulais savoir comment detecter le passage dans la condition pour afficher ou non par la suite les 2 lignes de dessous.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 function tep_get_paths($categories_array = '', $parent_id = '0', $indent = '', $path='') { ... while ($categories = tep_db_fetch_array($categories_query)) { if ($parent_id=='0') {...} } } echo '<form action="' . tep_href_link(FILENAME_DEFAULT) . '" method="get">' . tep_hide_session_id(); echo tep_draw_pull_down_menu('cPath', tep_get_paths(array(array('id' => '', 'text' => 'txte '))), $cPath, 'onchange="this.form.submit();"');
j'ai essayé avec une variable globale mais je my perd un peu et ca n'a pas marché![]()
comment faire ? merci d'avance
Partager