php mysql can't multiply a mysql result and a variable
<p>I can't for the life of me figure out why i keep coming up with 0 on this ... i'm pulling a price from one of my tables and multiplying it by the quantity they are putting in in the form ... for some reason it when i try and do the math, it keeps coming up as 0 ... any help? </p>

<p>code: </p>

<pre><code>$get_code = "SELECT * FROM products WHERE p_code LIKE '%$po_code%'";
$run_code = mysqli_query($con, $get_code); 
$row_code = mysqli_fetch_array($run_code);

$count = $_POST['ord_amt'];
$price = $row_code['p_price'];

$sum_total = $price * $count;
</code></pre>

<p>form code: </p>

<pre><code>&lt;form action="" method="post"&gt;
&lt;?php 
include('includes/connection.php'); 
global $con; 

$cust = "SELECT * FROM users WHERE u_id = '".$_SESSION['u_id']."'";
$r_cs = mysqli_query($con, $cust); 
$rw_c = mysqli_fetch_array($r_cs); 

echo "&lt;input type='hidden' name='c_id' value='".$rw_c['c_id']."'&gt;";
?&gt;
    &lt;table id="datatable1" class="table table-striped table-bordered" cellspacing="0" width="100%"&gt;
        &lt;thead&gt;
            &lt;tr&gt;
                &lt;th&gt;Product&lt;/th&gt;
                &lt;th&gt;Distal Opening&lt;/th&gt;
                &lt;th&gt;Material&lt;/th&gt;
                &lt;th&gt;Ply&lt;/th&gt;
                &lt;th&gt;Size&lt;/th&gt;
                &lt;th&gt;Length&lt;/th&gt;
                &lt;th&gt;Options&lt;/th&gt;
                &lt;th&gt;Or Enter Code (If Known)&lt;/th&gt;
                &lt;th&gt;Amount&lt;/th&gt;
            &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
            &lt;tr&gt;
                &lt;td&gt;
                    &lt;select class="form-control" name="prod" id="selectProd" onchange="get_prod(this.value)" required="required"&gt;
                        &lt;?php get_prod_kind() ?&gt;
                    &lt;/select&gt;
                &lt;/td&gt;
                &lt;td&gt;
                    &lt;select class="form-control" name="opening" id="distOpen" required="required"&gt;
                        &lt;option value=""&gt;Select Opening&lt;/option&gt;
                        &lt;option value="1"&gt;Rubberized Reinforced&lt;/option&gt;
                        &lt;option value="2"&gt;Standard Opening&lt;/option&gt;
                        &lt;option value=""&gt;None&lt;/option&gt;
                    &lt;/select&gt;
                &lt;/td&gt;
                &lt;td&gt;
                    &lt;select class="form-control" name='mat' id="selectMat" onchange="get_ply(this.value)" required="required"&gt;
                    &lt;/select&gt;
                &lt;/td&gt;
                &lt;td&gt;    
                    &lt;select class="form-control" name="ply" id="plySelect" onchange="get_size(this.value)" required="required"&gt;
                        &lt;option value=""&gt;&lt;/option&gt;
                    &lt;/select&gt;
                &lt;/td&gt;
                &lt;td&gt;
                    &lt;select class="form-control" name="size" id="sizeSelect" onchange="get_len(this.value)" required="required"&gt;
                        &lt;option value=""&gt;&lt;/option&gt;
                    &lt;/select&gt;
                &lt;/td&gt;
                &lt;td&gt;
                    &lt;select class="form-control" name="length" id="selectLength" required="required"&gt;
                        &lt;option value=""&gt;&lt;/option&gt;
                    &lt;/select&gt;
                &lt;/td&gt;
                &lt;td&gt;
                    &lt;select class="form-control" name="opts" required="required"&gt;
                        &lt;option value=""&gt;Select Options&lt;/option&gt;
                        &lt;option value="1"&gt;Sewn Top (S)&lt;/option&gt;
                        &lt;option value="2"&gt;Seal-In-Liner (C)&lt;/option&gt;
                        &lt;option value=""&gt;None&lt;/option&gt;
                    &lt;/select&gt;
                &lt;/td&gt;
                &lt;td&gt;&lt;input class="form-control" type='text' name='cust_code'&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input class="form-control" type='text' name='ord_amt' required="required"&gt;&lt;/td&gt;
            &lt;/tr&gt;

        &lt;/tbody&gt;

    &lt;/table&gt;

    &lt;button class="button button-3d button-rounded button-aqua" name="p_order"&gt;&lt;i class="icon-repeat"&gt;&lt;/i&gt;Next Item&lt;/button&gt;
    &lt;button class="button button-3d button-rounded button-green"&gt;&lt;i class="icon-ok"&gt;&lt;/i&gt;Submit Order&lt;/button&gt;

&lt;/form&gt;
</code></pre>