okay .. i have made one MYSQL DATABASE .. my table is "mytable" .. and my table name is "table2" .. here is my code ..
------------------------------------------------------------------------------------
<form method="post" name="f1">
Select for Update : <select name="s11">
</select>
<?php
mysql_connect("localhost","root","");
mysql_select_db("mytable");
$qry = "select uname from Table2";
$a = mysql_query($qry);
$_POST["s1"] == $a;
------------------------------------------------------------------------------------
now here what i want is when the page loads the all values of username in the database should come in the Dropdownlist ..
but when m running this page .. the page opens with no errors but nothing coming in my "dropdown menu(S11)" .. how can i fetch the value of all usernames which are in database ..
mitt
almost made a mistake while writing the code here ..
the PHP code is like this ..
<?php
mysql_connect("localhost","root","");
mysql_select_db("mytable");
$qry = "select uname from Table2";
$a = mysql_query($qry);
$_POST["s11"] == $a;
?>
and i have tried to put this code in <option > "php code" </option> also .. but still not working ..
------------------------------------------------------------------------------------
<form method="post" name="f1">
Select for Update : <select name="s11">
</select>
<?php
mysql_connect("localhost","root","");
mysql_select_db("mytable");
$qry = "select uname from Table2";
$a = mysql_query($qry);
$_POST["s1"] == $a;
------------------------------------------------------------------------------------
now here what i want is when the page loads the all values of username in the database should come in the Dropdownlist ..
but when m running this page .. the page opens with no errors but nothing coming in my "dropdown menu(S11)" .. how can i fetch the value of all usernames which are in database ..
mitt
almost made a mistake while writing the code here ..
the PHP code is like this ..
<?php
mysql_connect("localhost","root","");
mysql_select_db("mytable");
$qry = "select uname from Table2";
$a = mysql_query($qry);
$_POST["s11"] == $a;
?>
and i have tried to put this code in <option > "php code" </option> also .. but still not working ..