submit button will not show the result by one click it will show it by second click
问题 When I click the update button it will not update the table but when i Click it again it will be updated how can I correct it? <html> <head> <title>pharmacy</title> <form method="post"> <?php session_start(); $connection=Mysql_connect('localhost','admin','123'); Mysql_select_db('db',$connection); $pname=$_SESSION['s1']; $query="select * from request where ph='$pname'"; if(array_key_exists('rqlist',$_POST)) { if(!$connection) { echo 'connection is invalid'; } else { $result=mysql_query($query)