<?php $tbl = '`table1`'; $trunc = $conn->prepare('TRUNCATE TABLE :tbl'); $trunc->bindParam(':tbl', $tbl, PDO::PARAM_STR, 64); $trunc->execute(); ?>
Standard input is empty
Standard output is empty
PHP Notice: Undefined variable: conn in /home/73jYsR/prog.php on line 6 PHP Fatal error: Call to a member function prepare() on null in /home/73jYsR/prog.php on line 6