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

Popular posts from this blog

mysql - How to enter php data into a html multiple select box -

java - Can't add JTree to JPanel of a JInternalFrame -

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -