Timeline for Integer values in dynamic PDO query [duplicate]
Current License: CC BY-SA 3.0
Post Revisions
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 29, 2016 at 8:50 | history | closed | Your Common Sense mysql Users with the mysql badge or a synonym can single-handedly close mysql questions as duplicates and reopen them as needed. | Duplicate of How to apply bindValue method in LIMIT clause? | |
| Feb 29, 2016 at 3:00 | vote | accept | Manux22 | ||
| Feb 29, 2016 at 1:45 | history | edited | Manux22 | CC BY-SA 3.0 |
clarify
|
| Feb 29, 2016 at 1:38 | comment | added | chris85 |
Maybe bind with is_int($param) ? PDO::PARAM_INT : PDO::PARAM_STR with a foreach($params as $param..
|
|
| Feb 29, 2016 at 1:36 | comment | added | Kevin Kopf | what exactly do you mean by dynamic query? Maybe I'm missing something here | |
| Feb 29, 2016 at 1:35 | answer | added | Petschko | timeline score: 2 | |
| Feb 29, 2016 at 1:31 | answer | added | Kevin Kopf | timeline score: 2 | |
| Feb 29, 2016 at 1:27 | comment | added | Manux22 | @chris85 it does not work, see php docs: link input_parameters: An array of values with as many elements as there are bound parameters in the SQL statement being executed. All values are treated as PDO::PARAM_STR. | |
| S Feb 29, 2016 at 1:16 | review | Triage | |||
| Feb 29, 2016 at 1:35 | |||||
| S Feb 29, 2016 at 1:16 | history | asked | Manux22 | CC BY-SA 3.0 |