Jump to content

SQL-UPDATE


Nuimi
 Share

Recommended Posts

Can you help me with this update question.

  $db= new mysqli("localhost", "dany66", "*******", "mathstart");       $email_n = $_POST['email_n'];       $vek_n = $_POST['vek_n'];       $datum_n = $_POST['datum_n'];       if(isset($email_n))       {        $update1 = "UPDATE inf(email) SET  email= '$email'                     WHERE jmeno = '" . $_SESSION['username'] . "'";        $pokus = $db -> query($update1);        if(fetch_assoc($pokus) == TRUE)        {         echo("<script> alert('Řádek s e-mailem byl změněn.')</script>");        }        }
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...