SOLVED checkbox database
Posted: Mon Feb 16, 2009 3:38 am
hi,
For this moment, i try to recover a value from a database MySQL to put it next to a checkbox ; Typically the checkbox space value of database.
But actually i don't arrive to display the value of the database :
Can anyone help me?
see u
For this moment, i try to recover a value from a database MySQL to put it next to a checkbox ; Typically the checkbox space value of database.
But actually i don't arrive to display the value of the database :
Code: Select all
//l'utilisateur connecté accéde à la liste des thémes disponibles sur le site
$req_affichage_themes = "select titre from theme_langue where theme_langue.id_langue=".$_SESSION['id_langue']." ";
//execution
$res_req_affichage_themes = sql_requete($req_affichage_themes);
//traditional way of display in my application
echo($res_req_affichage_themes[0]['titre']);
for ($i = 1 ; $i = $nb_elmts_res_req_affichage_themes ; $i++)
{
?> <!-- affichage à tester -->
[b] [u] <input type="checkbox" name="theme" value="<?php echo($res_req_affichage_themes[1]['titre']) ?>"<br>[/u][/b]
<?php
}
see u