downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

prev> <next
[edit] Last updated: Fri, 18 May 2012

view this page in

pos

(PHP 4, PHP 5)

posAlias of current()

Description

This function is an alias of: current()



add a note add a note User Contributed Notes pos
sirmagid at gmail dot com 27-Apr-2012 06:25
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
*/

 
show source | credits | sitemap | contact | advertising | mirror sites