Re: [PHP-DB] Pulling a data from array of checkboxes

2002-07-27 Thread Cornelia Boenigk

Hi

> In a new page how can I pull the data from a MySQL database
according to
> each value I passed from a previous page?

Not tested, just an idea;-)

For example
$chk[0] contains 12345, the value of checkbox1
$chk[1] contains 67890, the value of checkbox2 and so on.

 $val) {
$sql = "SELECT field1, field2 ... from yourtable WHERE ID = $val";
$res = mysql_query($sql);
if ($res) {
$row = mysql_fetch_row($res);
// do something with the data in the retrieved row
}
}

Greetings
Conni




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Pulling a data from array of checkboxes

2002-07-27 Thread V Sharapov

I am passing a value of checkboxes in a form to a new page like this (see 
example here: http://www.gibsonusa.com/test/check/)
In a new page how can I pull the data from a MySQL database according to 
each value I passed from a previous page? In other words: Assume that the 
value of a checkbox equal to the ID of the record in a database. The value 
of checkbox 1 (for example) is 12345 and the value of checkbox2 is 67890. 
After passing those values to a new page how can I pull the rest of the 
information from a database for those values?




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php