I want to get the value of div
when I click. The problem is that it creates a div
in foreach
. I want to get id
, then pass this value to another page and use it to do a SELECT in the SQLite database.
$array_resultadoss = array(); //array
$array_resultadoss=select($dir, $base, $i);
$titless = ""; //variable inicialize
foreach($array_resultadoss as $key =>$value){
$titless .= "<div class=dois>".$value['id']."</div>";//save in variable value
}
echo"
<td class='td_today'>
<div class=divday style='cursor:pointer' onclick='popup(\"_popup_cal.php?jour=$i&moisEcris=$months[$moisaff]&annee=$year&mois=$month&txttitle=$txttitle&txtstart=$txtstart&txtend=$txtend&txtdescription=$txtdescription&maj=$maj&clean=1&numevent=$numevent\",400,300)';>
".$titless."</div>
</td>";
}