Note that there are some explanatory texts on larger screens.

plurals
  1. POupdate query not work
    primarykey
    data
    text
    <p>This is the full code of the page which i am using to update data.I Tried many time but it still not updating values in database..also tried to echo but still not updating</p> <pre><code>&lt;?php session_start(); include '../func-tion/func.php'; if(isset($_SESSION['m_uname']) &amp;&amp; isset($_SESSION['m_pass'])) { ?&gt; &lt;?php if(isset($_POST['subup'])) { $SQL="update appid set android_appid='".$_POST['and_a']."' , iphone_appid='".$_POST['iph_a']."' , ipad_appid='".$_POST['ipa_a']."' where u_name='".$_GET['name']."'"; echo $SQL; } ?&gt; &lt;?php $main_qry=mysql_query("select * from users where u_name='".$_GET['name']."'"); $main_fetch=mysql_fetch_assoc($main_qry); ?&gt; &lt;center&gt;&lt;h2 class="art-postheader"&gt;Edit details of &lt;b&gt;&lt;/b&gt;&lt;/h2&gt;&lt;/center&gt;&lt;br/&gt;&lt;br/&gt; &lt;table align="center"&gt; &lt;tr align="center"&gt; &lt;td style="height: 60px; font-family: Helvetica,Arial,sans-serif; font-weight: bold;"&gt;Username:&lt;br&gt; &lt;input type="text" name="u_name" style="width: 300px;" value="&lt;?php echo $main_fetch['u_name']?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr align="center"&gt; &lt;td style="height: 60px; font-family: Helvetica,Arial,sans-serif; font-weight: bold;"&gt;Email:&lt;br&gt; &lt;input type="text" name="u_email" style="width: 300px;" value="&lt;?php echo $main_fetch['u_email']?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt;&lt;?php $main_qrys=mysql_query("select * from appid where u_name='".$_GET['name']."'"); $row=mysql_fetch_assoc($main_qrys); ?&gt; &lt;form name="user" method="post" action="users_edit.php" onSubmit="return valid();"&gt; &lt;tr align="center"&gt; &lt;td style="width: 100px; font-family: Helvetica,Arial,sans-serif; font-weight: bold;"&gt;Android Appid:&lt;br&gt; &lt;input type="text" name="and_a" style="width: 300px;" value="&lt;?php echo $row['android_appid']?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr align="center"&gt; &lt;td style="width: 100px; font-family: Helvetica,Arial,sans-serif; font-weight: bold;"&gt;Iphone Appid:&lt;br&gt; &lt;input type="text" name="iph_a" style="width: 300px;" value="&lt;?php echo $row['iphone_appid']?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr align="center"&gt; &lt;td style="width: 100px; font-family: Helvetica,Arial,sans-serif; font-weight: bold;"&gt;Iphone(ipad) Appid:&lt;br&gt; &lt;input type="text" name="ipa_a" style="width: 300px;" value="&lt;?php echo $row['ipad_appid']?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr align="center"&gt; &lt;td style="height: 28px;"&gt; &lt;button name="subup" type="submit"&gt;Edit&lt;/button&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/form&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt;&lt;/html&gt; &lt;?php } else { header("Location:notserver.php?l=fake"); } ?&gt; </code></pre> <p>if anyone know..Please help me i will be very thankfull to him</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload