-
-
Save mingtsay/375461d24ac4da33e49e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$conn = new PDO("mysql:host=127.0.0.1;dbname=rfid;", "root", ""); | |
$cursor = $conn->prepare("select * from :table ;"); | |
//$cursor->execute(array(":table"=>"contrast")); | |
$cursor->bindValue(":table", "contrast"); | |
$cursor->execute(); | |
var_dump($cursor->fetch()); | |
// var_dump($cursor); | |
// var_dump($conn->query("select * from contrast")->fetch()); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment