Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: mourad sahbeni
Added: Jun 25, 2021 8:12 PM
Views: 44
Tags: no tags
  1. <?php
  2. include_once 'config.php';
  3. $id=$_POST['id'];
  4. $did=$_POST['did'];
  5. $did_dom_name = $_POST['$VAR'];
  6. $query = "SELECT did
  7. FROM cc_did T1
  8.         JOIN cc_card T2
  9.              ON
  10.                      T1.did_dom_name =
  11.                      T2.id - (SELECT AVG(did_dom_name)
  12.                                     FROM cc_did)";
  13. $result = mysqli_query($con,$query);
  14. if ($result) {
  15.         header("location: profile.php");
  16. }
  17. ?>
  18.