Advertisement
Guest User

Untitled

a guest
Feb 5th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <?php
  2. function write($date, $author, $author_url, $author_image, $post_url, $text, $image, $price, $headline, $post_image)
  3. {
  4. $host="localhost";
  5. $user="k963767g_sql";
  6. $pass="hackerman951";
  7. $db_name="k963767g_sql";
  8. $link=mysql_connect($host,$user,$pass);
  9. mysql_select_db($db_name,$link);
  10.  
  11. $sql = mysql_query("INSERT INTO `Base`(`date`, `author`, `author_url`, `author_image`, `post_url`, `text`, `image`, `price`, `headline`, `post_image`) VALUES ('".$date."','".$author."','".$author_url."','".$author_image."','".$post_url."','".$text."','".$image."','".$price."','".$headline."','".$post_image."')");
  12. }
  13.  
  14. write("2019-02-05", "Name_author", "https://vk.com/autor_url", "https://vk.com/image_autor", "https://vk.com/wall_123", "We sell a house with a discount", "IMAGE", "566", "HEADLINE", "imAGE_pOST");
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement