*/ use wishthis\{Page, User}; use Embed\Embed; if (isset($_POST['url'], $_POST['wishlist'])) { $database->query('INSERT INTO `products` (`wishlist`, `url`) VALUES (' . $_POST['wishlist'] . ', "' . $_POST['url'] . '") ;'); } $url = 'https://www.amazon.de/Adventskalender-2020-Schokolade-Weihnachtskalender-346g/dp/B08CTTP5JX'; $embed = new Embed(); $info = $embed->get($url); // https://github.com/oscarotero/Embed // echo '
'; // var_dump($info); // echo ''; $page = new page(__FILE__, 'Add a product'); $page->header(); $page->navigation(); $user = new User(); ?>