Jump to content

What is PDO::PARAM_INT;


spence911

Recommended Posts

What's up guys! Can somebody please explain the meaning of PDO::PARAM_INT in the following statement:

$pdoStmt->bindValue(":num", $num, PDO::PARAM_INT);

I have already created a PDO Statement object called $pdoStmt. This line will bind the value of $num to the placeholder called :num. I know that PDO::PARAM_INT is a Predefined Constant but what does it do in this case? Thanx

Link to comment
https://forums.phpfreaks.com/topic/288535-what-is-pdoparam_int/
Share on other sites

Which you could have found out rather quickly by reading about the 'bindvalue' statement in the MANUAL

 

It is simply amazing how so many would-be programming types visit forums with questions that are so easily answered with a little research  (aka, reading!) in the most appropriate place, namely, the manual. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.