hy i'm having problem with this mysql qry, i dont whant to insert in the db if its empty the field, ive tryied with is NULL, but its not working...
$qry=mysql_query("INSERT INTO trans_autista (autista, ditta)
SELECT * FROM (SELECT '$trans_autista', '$cat') AS tmp
WHERE NOT EXISTS (
SELECT autista FROM trans_autista WHERE autista = '$trans_autista' and ditta ='$cat'
) LIMIT 1", $con);