Timeline for mySQL / PHP design pattern - one function multiple queries
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 11, 2015 at 19:15 | comment | added | Ext3h | @RobertPounder No, PHP does not do that for you. Have a look at the documentation: php.net/manual/de/pdostatement.bindparam.php PHP requires you to provide a format constant which denotes in which format the parameter should be transfered. If omitted, it will transfer it as a string. This does work in most cases, but not when it would result in an ambiguous type cast (e.g. because MySQL would accept both a string as well as an integer as first parameter to a certain function). | |
| Feb 21, 2015 at 3:01 | review | First posts | |||
| Feb 21, 2015 at 20:00 | |||||
| Feb 10, 2015 at 15:54 | comment | added | Robert Pounder | PHP does that for you, could you give me an example? | |
| Feb 10, 2015 at 15:44 | comment | added | fizzy drink | how would you sort between the difference type of params? ie INT vs STR? | |
| Feb 10, 2015 at 14:26 | history | answered | Robert Pounder | CC BY-SA 3.0 |