Hi,
first you need connect to the database y attach on this example a litle
extension class of Pear DB class. I suppose that your case use mysql
database.
this is an example:
db_dbArray($DB, $q)){
for($i=0;$i_db['data']);$i+
OK, let's see:
First, do the connection to your DB
$query= "select * from groups"; // get the data from your grous table
$ri=mysql_query($query, $li); // execute the query agains your table
while ($data=mysql_fetch_row($ri)) { // get the row in turn, $data is the array
that holds your group data
I'll skip the sql (figuring you'll have that covered)
while($rows = mysql_fetch_array($result))
{
$id = $rows['group_id'] ;
$name = $rows['group_name'];
echo "value=\"$id\">$name >";
}
Bastien
From: "Jeff Broomall" <[EMAIL PROTECTED]>
To:
Subject: [PHP-DB] Creating checkbox list.