What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-13 19:52:26
php pdo image upload
<?php require_once "connection.php"; if(isset($_REQUEST['btn_insert'])) { try { $name = $_REQUEST['txt_name']; //textbox name "txt_name" $image_file = $_FILES["txt_file"]["name"]; $type = $_FILES[... Add solution -
PHP 2021-10-24 09:46:12
php mariadb connect
$host = 'localhost'; // URL to the server $user = 'root'; // Username (xampp = root) $pw = ''; // Password (xampp = ) $dbname = 'database'; // The name of your database $dsn = "mysql:host=$host;dbname=$dbname"; $options = [PDO::MYSQL_ATTR_INIT_... Add solution