![]() |
|
|||||||
| PHP - Code PHP programming - Ask questions and help people with PHP code. If you are stuck and need help, this is where you ask for help. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I have a SQL query with parameters: Code:
$strSQL = "INSERT INTO myTab VALUES(:par1,:par2)";
$params = array('par1'=>$this->par1->text,
'par2'=>$this->par2->text);
$Dm->MyQuery->ParamByNames = $params;
For example, if I tried to insert a value in a date column, PHP would treat the parameter as string by default, and this gives me some problem. Thank you |
| Sponsored Links |
|
|