php - Mysql code working in browser but not working when running page in mobile -


i have php file mysql code in it, problem when run in chrome browser file runs , mysql code update table when run same file in mobile php file runs mysql table not updated php code given below site

<body> <?php require 'req.php'; if ($_server["request_method"] == "post") { $post_trans=$_post["farm_option"]; mysql_select_db('abc'); $sql2 = "update table set act_st='1' transaction='$post_trans'"; $sqlste = mysql_query($sql2, $conn); if($sqlste){     echo "<h1>account activated</h1>"; } }else{ $sql ="select transaction, email `trans` act_st='0'"; mysql_select_db('abc'); $sqlst = mysql_query($sql, $conn); if($sqlst){     echo '<form name="farm" method="post" action="nis.php">';     echo '<label>transaction </label>'; echo '<select name="farm_option">';      while($row = mysql_fetch_assoc($sqlst)){         echo '<option>'.$row['transaction'].'</option>';                 }             echo '</select>';              echo '<input type="submit">'; echo '</form>';} } ?> 

when submit form mobile print "account activated" table not updated


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -