How can i do a select from a variable received from a form?
I have the following code but i think that i cannot do this : '%'.$texto.'%'
$busqueda=$_POST['texto'];
$tipo=$_POST['tipo'];
if($tipo='titulo')
$res=mysql_query("SELECT * FROM LIBRO WHERE LI_TITULO like '%'.$texto.'%'",$conexion);
What should i do? Thank you for your time.