Hello,
When i print the value of the variable before the session_start(), it's good. (the good number)
After the session_start() the echo give me 0.
I can not understand the problem.
Thank you for your help.
Yvo 😕
PHP problem.
50
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:\inetpub\wwwroot\pgm\pdf1.php:121) in c:\inetpub\wwwroot\pgm\pdf1.php on line 124
array("Nomm","Prenom","age","ddn")
**array(0,0,0,0)
The code:
echo "<br>$lgPrenom";
//session_cache_limiter('private');
session_start();
include "common_db.inc";
echo "<br>$lgPrenom";
$w_nom = "array(" ;
$w_valeur = "array(" ;
$pdf=new PDF($orientation,'mm',$A);
$pdf->Open();
$req = $GLOBALS["session_req"];
mysql_connect('localhost','','');
mysql_select_db('yvotest');
$toto = mysql_query($req);
$nb_champ= mysql_num_fields($toto) ;
$a=1;
while( $a < $nb_champ)
{
$nom_champ = mysql_field_name($toto , $a);
$vari= "lg".$nom_champ;
if(isset($$nom_champ))
{
if($a!=1)
{
$w_nom .= ",";
$w_valeur .= ",";
}
$w_nom .= "\"".$nom_champ."\"";
$w_valeur .= $$vari;
}
$a++;
}
$w_nom .= ")";
$w_valeur .= ")";
echo "<br>$w_nom";
echo "<br>**$w_valeur";