PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE users( name varchar(64), username varchar(64), email varchar(64), password varchar(64), reg_date datetime );
Copy Clear
Copy Format Clear
<?php $name = ''; $username = ''; $email = ''; $password = ''; $query = "INSERT INTO users(name, username, email, password, reg_date) VALUES (?, ?, ?, ?, NOW())"; $q_prepared = mysqli_prepare($mysqli, $query); $q_prepared->bind_param("ssss", $name, $username,$email,$password); mysqli_stmt_execute($q_prepared);
Show:  
Copy Clear