daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest May 16th, 2018 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $servidor = "localhost";
  2. $usuario = "root";
  3. $password ="xxxx";
  4. $basededatos = "xxxx";
  5.  
  6. $mysqli = new mysqli($servidor, $usuario, $password, $basededatos);
  7. if ($mysqli->connect_errno) {
  8.     echo "Falló la conexión con MySQL: (".$mysqli->connect_errno.") ".$mysqli->connect_error;
  9. }
  10.  
  11.  
  12. function insertar($name,$dni) {
  13. $cadena = "update users set xxxxx";
  14. $mysqli->query($cadena);
  15. }
  16.    
  17. function insertar($mysqli, $name, $dni){
  18.  $cadena = "update users set xxxxx";
  19.  $mysqli->query($cadena);
  20. }
  21.    
  22. function insertar($name, $dni){
  23.   global $mysqli;
  24.   $cadena = "update users set xxxxx";
  25.   $mysqli->query($cadena);
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top