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> Very important: & 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 = '*'
Comments
Post a Comment