basically it should come up with one row and when it is executed it finds no rows. On other variables it works just fine, but when these specific variables come up it doesn't find the row.
here's the php
$temp_query="SELECT * FROM `orders` WHERE `cust`='$cust' AND `job`='$jobname' AND `worder`='$worder'";
$temp_result=mysql_query($temp_query);
if (!mysql_num_rows($temp_result) || mysql_num_rows($temp_result)==0){
$temp_query="insert into orders values('', '$worder', '$cust', '$jobname', '$date', '', '$house', '$sales')";
$temp_result=mysql_query($temp_query);
}
It should check if those particular variables are in the database...if their not then they get put in.