I have a pull down menu that gathers a list of people from the database.
What I am trying to do from there is after scrolling through and
finding the correct record and selecting it, the page will then display
that records information.
I have done some searching and I am assuming that is
I am trying to take information from a database and show that info in a
forms list. I have been trying this with while(), but it never comes
out and displays correctly. Any help would be appreciated.
--
Jason Davidson
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit:
($check=mysql_fetch_array($result)){
print $check[LNAME],$check[FNAME]($check[CID]);
}
?
/option
/select
/div/td
/tr
--
Jason Davidson
Juan Stiller wrote:
It might be usefull to see the code you are using to
show the query results.
--- Jason T. Davidson [EMAIL
just fine, but it's variable
doesn't come from a database.
--
Jason Davidson
Bastien Koert wrote:
Hi Jason,
1. I don't think you need the quotes around the values.
2. is the user cookie set?
bastien
From: Jason T. Davidson [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED
/function.setcookie.php
that url should help you
From: Jason T. Davidson [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Cookies with databases
Date: Wed, 20 Oct 2004 19:54:54 -0500
MIME-Version: 1.0
Received: from pb1.pair.com ([216.92.131.4]) by mc8-f21
I am trying to set a cookie with a value from a database. Here is my
script:
? //Setting Cookies
setcookie ('CIDcookie', $cid);
setcookie ('USERcookie', $user);
?
?
//Database connection
require (../../db_connect.php);
//Table Name
$main_tbl = MAIN
?
?
//Check the Password against the CID