might be a connection problem to the db...have you included the db connection in this page or in another (I favor this approach as its easier to maintain)
<?php
//conn.php
//check the password from the DB and get the access level = type
$username = "root";
$pwd ="*******";
$host = "localhost";
$dbname = "my_db";
//connect to db
//$conn=mysql_connect($host, $username, $pwd) or die ("Unable to connect to database");
if (!($conn=mysql_connect($host, $username, $pwd))) {
printf("error connecting to DB by user = $username and pwd=$pwd");
exit;
}
$db=mysql_select_db($dbname,$conn) or die("Unable to connect to database1");
?>
and then i work it into the page like this
<?
include("conn.php");
$sql="select....";
$result = mysql_query($sql,$conn) or die("can't connect because ".mysql_error());
//rest of your page
?>
so in your case it changes the sql process to this:
include("conn.php"); //include the db connection page
if ($cboAW == 1)
{
$strSQL = "SELECT awd FROM awd WHERE sku = '$txtSKU'";
$result = mysql_query($strSQL,$conn) or die(mysql_error());
$awd = $row["awd"];
echo $awd;
}
Try creating your own conn.php and includinging it like this..see if that helps