I seek to make a query that makes a complete selection of the tabla
that I select where any of all the existing fields in the db
match the search value, this implies that the data that exists in the base of data with a value equal to the one entered, I mean:
I have a search field in which to enter a word I want to be searched in the db.
$sql="SELECT * FROM tbl_noticias_blog WHERE unodetodoslosdatos='$busqueda'";
At the moment I have it in this way the code:
$sql="SELECT * FROM tbl_noticias_blog WHERE fecha='$busqueda' OR titulo='$busqueda' OR dcorta='$busqueda' OR dlarga='$busqueda'"
This way the person will enter a search value and it should be compared with all the tables to see if it exists.