时间:2021-07-01 10:21:17 帮助过:11人阅读
getData( $sql );$name = strip_tags( $_REQUEST['name'] );$age = intval( $_REQUEST['age'] );$sql = "INSERT INTO `user` ( `name`, `age`, `regtime`) VALUES ('" . $mysql->escape( $name ) . "' , '" . intval( $age ) . "' , NOW() ) ";$mysql->runSql($sql);if ($mysql->errno() != 0){ die("Error:" . $mysql->errmsg());}$mysql->closeDb();?>