$DB_Connect = mysql_connect("localhost","root" , "password");
if (!$DB_Connect)
{
die ('Unable to connect to the database: ' . mysql_error());
}
//Selection of database
mysql_select_db("puppy",$DB_Connect);
//Create the query
$result = "SELECT Description FROM puppy_tricks";
//Run the query
$query_resource = mysql_query($result);
MySQL)
while( $puppy_tricks = mysql_fetch_assoc($query_resource)) :
?>
Trying to input the column ID with check boxes created dynamically as long as it shows the description.
<span><?php echo $puppy_tricks['Description']; ?></span>
<input name="check1[]" type="checkbox" value="<?php echo $puppy_tricks['Description']; ?>"/>
<?php endwhile; ?>
<p>
<input type="submit" name="submit" value="submit">
</form>
</body>
Aucun commentaire:
Enregistrer un commentaire