Jump to content
Sign in to follow this  
Nuimi

SQL-UPDATE

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>");        }        }

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...