Inserting date into oracle database from PHP

后端 未结 2 1481
无人共我
无人共我 2021-01-22 17:47

I have a question regarding inserting date from PHP into Oracle DB

so i have this in my PHP,

$delivDate = strval($_POST[\'deliveryDate\']);

echo $delivD         


        
2条回答
  •  别那么骄傲
    2021-01-22 18:31

    I'm guessing its a date format issue but you need to have an oci_error statement to expose any sql related errors.

    Please refer to the oci_execute section here http://php.net/manual/en/function.oci-execute.php. There are a few examples where oci_execute is used in if statements implying that its a boolean return. If its false, fork into the oci_error code and expose your sql issues.

    Excerpted from link above to save you time:

    
    

提交回复
热议问题