i need some help in the search code which i am sending you
Expand|Select|Wrap|Line Numbers
- <?php
- $con=mysql_connect("localhost","root","");
- mysql_select_db("school",$con);
- if(isset($_POST['search']))
- {
- $uname=$_POST['uname'];
- $sql=mysql_query("select * from cpass where uname ='$uname'");
- while($res=mysql_fetch_array($sql))
- {
- echo "the search successfull";
- echo $res['uname'];
- //echo $sql;
- }
- }
- ?>
plz tell me how could i work it out