I am trying to make a web application and I would like to search in a mysql database with a php script. But my code does not work as expected. Here is my code:
$search=$_POST['search'];
$sql_cautare="SELECT * FROM carti WHERE titlu = "$search"";
I have search form..and I want to select those values that are entered in the search form. Can anyone help me?