Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $myhtml=ob_get_contents();
  3. $con = mysql_connect("localhost","root","root");
  4. if (!$con)
  5.   {
  6.   die('Could not connect: ' . mysql_error());
  7.   }
  8. mysql_select_db("cccsp", $con);
  9. $insert_data=mysql_real_escape_string('$myhtml');
  10. mysql_query("INSERT INTO new (text) values ('testing')");
  11. mysql_query("INSERT INTO certificates (content) values ($insert_data)");
  12. mysql_close($con);
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement