when i issue the following query i get "Lookup failed: Unknown column 'B753' in 'where clause'" but B753 is a value in the $value var.
does anybody know why this is?
thx
does anybody know why this is?
Code:
foreach ($_POST['dvd'] as $value)
{
# make a SQL query specific to the dvd
$query = "SELECT * FROM video WHERE video.Code= ". $value;
$result = mysql_query($query) OR die("Lookup failed: ".mysql_error());
$row = mysql_fetch_assoc($result);
# process the record now
foreach($row as $key=>$val)
{
echo 'key is '. $key .' and val is '. $val;
}
}