I currently have this query.
SELECT
CONCAT(`codeDoc`, '-', `prefixDoc`) AS `docId`,
`descriptionDoc`,
`statusDoc`
FROM
`BD`.`Table`
WHERE (
...
)
that query expects a request GET with a parameter called searchParam
, I try this.
$searchParam = $_GET['searchParam'];
WHERE (
`docId` LIKE '%".$searchParam."%'"
)
But it does not work like i was expected, and i undertand because docId
is not a field in my table, it only is an alias (AS docId
).
The question is how to achieve that ?