Re: A real question this time...
| From: | John Coder | Date: | Fri, 05 Jul 2002 18:56:13 +0000 |
| Subject: | Re: A real question this time... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20349@lists.php.net to get a copy of this message | ||
On Fri, 2002-07-05 at 14:43, NIPP, SCOTT V (SBCSI) wrote:
>
> mysql_select_db($database, $Test);
> $query_SA = "SELECT sbcuid FROM contacts_sa";
> $SA = mysql_query($query_SA, $Test) or die(mysql_error());
> $PASS = $SA;
<snip>
I think here is your problem you have the select element name pass just
as you have the select query name pass it seems that php might
initialize the variable to the select element name instead of the query
.
> $passed = "<select size=\"1\" name=\"pass\">\n";
> $passed .= "<option>SA UID</option>\n";
> $passed .= "<option>------</option>\n";
> while($name = mysql_fetch_row($PASS)) {
> $passed .= "<option>$name[0]</option>\n";
> }
>