Dear All,
How do i parse Single Quotes into the db table, 'coz whenever i insert into the table it gives mySQL error 'coz the variable contains Single Quotes.
$query = "INSERT INTO ads (catid, comp, owner) VALUES ($sh, '$comp', '$owner')";
$result = mysql_query($query) or die("Query failed");
Now suppose if the variable "$owner" contains Mac Son's, while inserting, the query fails.
So how do i Insert Single Quotes into the Database.
Please Help
THanx