Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>OK. Thanks to Wrikken. Your comments worked! </p> <p>From <a href="http://msdn.microsoft.com/en-us/library/cc626305.aspx" rel="nofollow">this page</a>, I found how to define SQLSRV_SQLTYPE_* for each parameter. </p> <p>Now, I updated my code to have: </p> <pre><code>$params = array( array(&amp;$mm_fullname, null, null, SQLSRV_SQLTYPE_VARCHAR(200)), array(&amp;$mm_firstname, null, null, SQLSRV_SQLTYPE_VARCHAR(100)), array(&amp;$mm_surname, null, null, SQLSRV_SQLTYPE_VARCHAR(100)), array(&amp;$mm_contactphone, null, null, SQLSRV_SQLTYPE_VARCHAR(50)), array(&amp;$mm_workphone, null, null, SQLSRV_SQLTYPE_VARCHAR(50)), array(&amp;$mm_contactmobile, null, null, SQLSRV_SQLTYPE_VARCHAR(50)), array(&amp;$mm_emailaddress, null, null, SQLSRV_SQLTYPE_VARCHAR(150)), array(&amp;$mm_callwhen, null, null, SQLSRV_SQLTYPE_VARCHAR(50)), array(&amp;$mm_loantype, null, null, SQLSRV_SQLTYPE_VARCHAR(50)), array(&amp;$mm_enquirydate, null, null, SQLSRV_SQLTYPE_DATETIME), array(&amp;$mm_suburb, null, null, SQLSRV_SQLTYPE_VARCHAR(100)), array(&amp;$mm_state, null, null, SQLSRV_SQLTYPE_VARCHAR(50)), array(&amp;$mm_postcode, null, null, SQLSRV_SQLTYPE_VARCHAR(20)), array(&amp;$mm_hiddenfield, null, null, SQLSRV_SQLTYPE_VARCHAR(2000)), array(&amp;$mm_cfissue01, null, null, SQLSRV_SQLTYPE_VARCHAR(2000)), array(&amp;$mm_cfissue02, null, null, SQLSRV_SQLTYPE_VARCHAR(2000)), array(&amp;$mm_cfissue03, null, null, SQLSRV_SQLTYPE_VARCHAR(2000)), array(&amp;$mm_cfissue04, null, null, SQLSRV_SQLTYPE_VARCHAR(2000)), array(&amp;$mm_productid, null, null, SQLSRV_SQLTYPE_VARCHAR(50)) ); </code></pre> <p>It works great without any error!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload