title: multiple query in one php file , i tried to write the code but i am not getting it done
body: <p>I want to execute mysql_qry1 also , how should i do it , till now my code is working fine but i want to execute the second query also(mysql_qry1) , please help.</p>
  
  <pre><code>&lt;?php
  require "conn.php";
  $status=1;
  $user_name = $_POST["user"];
  $user_pass = $_POST["pass"];
  $mysql_qry = "select * from tbl_client where username like '$user_name' and password like '$user_pass'";
  $mysql_qry1 = "insert into login_status (username, status) values ('$user_name','$status)";
  $result = mysqli_query($conn , $mysql_qry);
  if(mysqli_num_rows($result)==1) {
  echo "login success , Hello";
  }
  else {
  echo "login failed";
  }
  $conn-&gt;close();
  
  ?&gt;
  </code></pre>