Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular

PHPize.online is a free online environment for quickly running, experimenting with and sharing PHP (including Carbon extension for DateTime) and SQL code. You can run your SQL code with PHP code that can use the same DB. For database manipulations you can use pre-defined instances of PDO ($pdo), mysqli ($mysqli) & Laravel query builder ($db)

Copy Format Clear
CREATE TABLE `user` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `uuid` varchar(50) NOT NULL, `email` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `pwd` varchar(255) NOT NULL, `data` longtext DEFAULT NULL, `geloescht` tinyint(4) NOT NULL DEFAULT 0, `role` varchar(10) NOT NULL, `allowed_pet_owner_uuid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `reset_password` longtext DEFAULT NULL, `temp_token` varchar(255) DEFAULT NULL, `reset_password_uuid` varchar(100) DEFAULT NULL, PRIMARY KEY (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_german2_ci; INSERT INTO `user` (`uuid`, `email`, `pwd`, `data`, `geloescht`, `role`, `allowed_pet_owner_uuid`, `reset_password`, `temp_token`, `reset_password_uuid`) VALUES ('123e4567-e89b-12d3-a456-426614174000', 'user@example.com', 'hashed_password_here', NULL, 0, 'admin', NULL, NULL, NULL, NULL);
Copy Clear
Copy Format Clear
<?php $q = mysqli_prepare( $mysqli, "SHOW COLUMNS FROM `user`" ); $q->bind_param("ss", $user_names, $user_pass); $q->execute();
Show:  
Copy Clear