Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function write($date, $author, $author_url, $author_image, $post_url, $text, $image, $price, $headline, $post_image)
- {
- $host="localhost";
- $user="k963767g_sql";
- $pass="hackerman951";
- $db_name="k963767g_sql";
- $link=mysql_connect($host,$user,$pass);
- mysql_select_db($db_name,$link);
- $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."')");
- }
- 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");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement