PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table `'test'` (id int);
Copy Clear
Copy Format Clear
<?php $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); $query = "SELECT * FROM `:userName`;"; $stmt = $pdo->prepare($query); $stmt->bindValue(":userName", 'test'); $stmt->execute();
Show:  
Copy Clear