title: How to Convert Data Type Varchar to MONEY in PHP
body: <p>I need to insert data into my MSSQL server 2000.
  The data type of existing field is set as MONEY(19,4).</p>
  
  <p>while I am trying to insert data from PHP. following error occur:</p>
  
  <pre><code>Disallowed implicit conversion from data type varchar to data type money. Use the CONVERT function to run this query
  </code></pre>
  
  <p>While trying to CAST my variable as MONEY,</p>
  
  <pre><code> syntax error, unexpected 'AS' (T_AS) 
  </code></pre>
  
  <p>While trying to CONVERT, it says </p>
  
  <pre><code>Undefined function CONVERT()
  </code></pre>
  
  <p>Please help me sort it out.
  Thanks.</p>