Evening All, just trying to figure out why some of my variables are not echoing from my MYSQL database. At first they were going to be Session variables of which i found did not work, so then i changed to a mysql query on my invoice page
$OrderID = $_SESSION[OrderID];
$LName = mysql_result(mysql_query("SELECT LName FROM customers WHERE     Username = '$Username'"), 0);
$Fname = mysql_result(mysql_query("SELECT FName FROM customers WHERE Username = '$Username'"), 0);
$Date =  mysql_result(mysql_query("SELECT Date FROM orders WHERE OrderID = '$OrderID'"), 0);
My Queries above. Order ID and Date are working, yet Lname and Fname are not where everything is named correctly as they are in the database.
Full Code below of where i am trying to echo them.
<div id='containter' style='position:absolute;width:750px;height:800px; left:50% ; margin-left: -375px;  border-style: solid;border-width: 1px;'>
        <div id='heading' style='position:absolute;width:650px;height:100px; left:50% ; margin-left: -325px;top:20px; border-style: solid;border-width: 1px;'> 
            <div style='position:absolute;left:500px;text-align:center;font-size:36px;'> <p>INVOICE </p></div>
            <div style='position:absolute;text-align:center;font-size:38px;width:250px;left:-20px;'> OzScopes</div>
            <div style='position:absolute;text-align:center;font-size:16px;width:250px;left:-37px;top:45px;'> ozscopes.com.au</div> 
                <div id='headingbottom' style='position:absolute;width:100%;height:20px;top:80px;'>
                    <table>
                            <tr>
                                    <td style='position:absolute;left:5%;'>Invoice Number   </td>
                                    <td style='position:absolute;left:25%;'> <?php echo $OrderID;?> </td>
                                    <td style='position:absolute;left:77%;'><?php echo $Date ;?></td>
                            </tr>
                    </table>
            </div>
        </div>
        <div id='invoicecontent' style='position:absolute;width:650px;height:600px; left:50% ; margin-left: -325px;top:140px; border-style: solid;border-width: 1px;'>
            <div id='information'> 
                <div id='customerinfo' style='position:absolute;width:255px;height:75px;top:-210px;padding:10px; border-bottom: 2px solid;border-right:1px solid; display:inline'> 
                   <table>
                                          <tr>
                                              <th>Customer Information</th>
                                          </tr>
                                          <tr>
                                              <td> <?php echo $LName;?>  lnametest</td>
                                          </tr>
                                       </table>
                </div>
                <div id='mailinginfo' style='position:absolute;width:355px;height:75px;left:275px;top:-210px;padding:10px;border-bottom: 2px solid; display:inline'> 
                Mailing Information 
                </div>
            </div>
            <div id='products' style='position:absolute;top:97px;width:650px;height:503px;'>  
<?php
      echo "<table border=\"0\" cellspacing=\"0\" padding=\"0\" width=\"650px\">";
                echo "<tr style='font-weight: bold; font-size:16px;'>";
        echo "<td colspan=\"2\" align=\"center\" style='border-bottom: 2px solid;font-family:'Ek Mukta';color:#464d48;'>Description</td>";
        echo "<td align=\"left\" style='border-bottom: 2px solid;font-family:'Ek Mukta';color:#464d48;'>Quantity</td>";
        echo "<td colspan=\"3\" align=\"center\" style='border-bottom: 2px solid ;font-family:'Ek Mukta';color:#464d48;'>Price (Per Unit)</td>";
        echo "<td align=\"center\" style='border-bottom: 2px solid;font-family:'Ek Mukta';color:#464d48;'>Total</td>";
        echo "</tr>";
      echo "</table>";
?>
                            </div>
            <div id='payment'>
            </div>
        </div>
</div>
 
     
    