Prepared Statements
-
Says prepared statements require two arguments.
I don’t understand something, it looks like it requires you to pass the argument at the time you prepare the statement?
in PDO you do something like
$sql = 'DELETE FROM ' . $this->sqltable . ' WHERE tid=?'; $q = $this->pdo->prepare($sql);
Then later you can use it by calling
$q->execute($arg)
You can’t do that with WordPred $wpdb prepared statements? You have to know the argument(s) at the time you prepare it?
That seems wrong, what am I missing?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Prepared Statements’ is closed to new replies.