Ver original$questlquery = doquery("SELECT estado FROM {{table}} WHERE iduser='$userid' AND idquest='$tempqid'", "usquest");