note 108448 deleted from function.pos by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 16:58:23 +0000 |
| Subject: | note 108448 deleted from function.pos by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187623@lists.php.net to get a copy of this message | ||
Note Submitter: sirmagid at gmail dot com
----
mysql_connect("localhost", "2", "2") or die(mysql_error());
mysql_select_db("m_1") or die(mysql_error());
$data = mysql_query("SELECT * FROM b_1")
or die(mysql_error());
//print '<select size="0" name="m">'; // if you want list
while($info = mysql_fetch_array( $data ))
{
$list=$info['f_1'];
//---------------------
print current($info);
//----------------------
//print '<option
value="0">'.$k.'-'.$list.'</option>';
}
//print '</select>';
mysql_close();
}
/* THE ABOVE "EXAMPLE USAGE" OUTPUTS:
12345789000
*/