Searched refs:dbh (Results 1 – 2 of 2) sorted by relevance
/web-master/entry/ |
H A D | user-notes-vote.php | 24 function vote_validate_request(PDO $dbh) { argument 71 $noteStmt = $dbh->prepare("SELECT COUNT(*) AS num, sect FROM note WHERE id = :id"); 86 …$remoteStmt = $dbh->prepare("SELECT COUNT(*) AS num FROM votes WHERE ip = :ip AND ts >= (NOW() - I… 101 …$hostStmt = $dbh->prepare("SELECT COUNT(*) AS num FROM votes WHERE hostip = :ip AND ts >= (NOW() -… 116 …$voteStmt = $dbh->prepare("INSERT INTO votes(note_id,ip,hostip,ts,vote) VALUES(:id,:ip,:host,:ts,:… 126 …$voteStmt = $dbh->prepare("SELECT SUM(votes.vote) AS up, (COUNT(votes.vote) - SUM(votes.vote)) AS … 154 $dbh = new PDO('mysql:host=localhost;dbname=phpmasterdb', 'nobody', ''); variable 162 if (($jsonResponse->votes = vote_validate_request($dbh)) === false) {
|
/web-master/fetch/ |
H A D | user-notes.php | 9 $dbh = new PDO('mysql:host=localhost;dbname=phpmasterdb', 'nobody', ''); variable 10 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 11 $dbh->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0); 28 $stmt = $dbh->prepare($query);
|
Completed in 7 milliseconds