Stuck with a syntax error with basic php function. : <p>I keep getting the following error for this function.</p>

<blockquote>
  <p>Parse error: syntax error, unexpected '$tempsql' (T_VARIABLE) in
  /home/vps20119/public_html/outlet/admin/internal/dcOrderFunctions.php
  on line 6</p>
</blockquote>

<p>I don't get it. I can't find any syntax errors before I start defining / declaring the $tempsql. What am I over looking? Below is a copy of the entire file.</p>

<pre><code>&lt;?php
//A function to extract the QC from the Order number
function orderGetQC($dropcomOrderID){

            //Get the Product ID from the order.
            $tempsql = "SELECT * FROM `oc_order_product` WHERE `order_id` = '". $dropcomOrderID ."'";
            //runs the query (above) and puts the resulting data into a variable called $orderInfo.
            $orderInfo = $conn-&gt;query($tempsql);
            $temprow = $orderInfo-&gt;fetch_assoc();
            $productID = $temprow['product_id'];

            //Get the QC from the product ID.
            $tempsql2 = "SELECT * FROM `multi_quantity_received` WHERE `product_id` = '". $productID ."'";
            //runs the query (above) and puts the resulting data into a variable called $productInfo.
            $productInfo = $conn-&gt;query($tempsql2);
            $temprow2 = $productInfo-&gt;fetch_assoc();
            if( $productInfo-&gt;num_rows &gt; 1){
                $QC = "multipleQCs";
            } else {
                $QC = $temprow2['qc'];
            }

            return $QC;

}
?&gt;
</code></pre>
