Created
April 26, 2015 16:41
-
-
Save linroex/46b77db63e1b246d5703 to your computer and use it in GitHub Desktop.
This file contains hidden or 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([":table"=>"contrast"]); | |
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