php - PDO(?) -- :variable -
I found this code. How is it possible to use a variable (delete command) before defining it? My understanding, at least - is that: ID for the value of $ id.
$ this-> Db- & gt; Query ('ID = ID: in Sessions with Sentence'); $ This- & gt; Db- & gt; Tie (': id', $ id);
here, : id
is not a variable, it A named placeholder.
In the second statement, you can tie PDF to the value of $ id
with the : id
placeholder.
See.
Comments
Post a Comment