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

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

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -