fork download
  1. <?php
  2. $content = $_POST ['link'];
  3. $mysqli = new mysqli ("localhost", "fedsar3e_link", "123456", "fedsar3e_link");
  4. $succeess = $mysqli-> query ("INSERT INTO `sef` ( `alias`, `link`) VALUES ( `$content`, `123`)" );
  5. echo $succeess;
  6. $mysqli-> close();
  7. ?>
Runtime error #stdin #stdout #stderr 0.01s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined index: link in /home/HdrKC9/prog.php on line 2
PHP Fatal error:  Uncaught Error: Class 'mysqli' not found in /home/HdrKC9/prog.php:3
Stack trace:
#0 {main}
  thrown in /home/HdrKC9/prog.php on line 3