Hi. I am having the problem in executing the query in PHP. Here is the query which I have written. mysql_query("delete from '.$tblname.' where '.$col.'= '.$val.'") Here $val can be string value or integer value. What should I do? Please help me. Thanks in advance.
try this one if (is_string($val)) $val = '\''.$val.'\''; mysql_query('delete from `'.$tblname.'` where '.$col.'= '.$val) PHP: