I have this in PHP :
$dbo = new PDO("mysql:host=$host;dbname=$database", $user, $pass, $options);
$q4 = "DELETE FROM categories WHERE categories.Title = 'titletodelete'";
$dbo->exec($q4);
this works, however when I try to use a variable :
$dbo = new PDO("mysql:host=$host;dbname=$database", $user, $pass, $options);
$q = $_REQUEST["q"];
$q4 = "DELETE FROM categories WHERE categories.Title = '$q'");
$dbo->exec($q4);
it fails.
I have tried everything, help, please!