php - Second query doesn't work -


The first query works fine but the second query does not update the database. I'm not getting the error < Pre> & lt ;? Php if (isset ($ _gET ['id'])) {$ editdes = $ _GET ['id']; $ Con = mysqli_connect ("localhost", "user", "password", "destino"); $ Con1 = mysqli_connect ("localhost", "user", "password", "var"); // Check connection if (mysqli_connect_errno ()) {echo "failed to connect to MySQL:". Mysqli_connect_error (); } Mysqli_query ($ con, "Update Dinosaurs SET Precio = 730 where denito = '$ editdes'"); Mysqli_query ($ con1, "UPDATE var SET variable = '$ editdes' WHERE variable = *"); Mysqli_close ($ thief); }? & Gt;

* is a string if the value of a Fields used in and should be cited

  UPDATE var SET variable = '$ editdes' WHERE variable = '*'   

Very important:

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -