by default I have one column in the mysql table is NULL.
I want to select multiple rows, but only if the field value in this column is not NULL.
What is the correct way to enter it?
$query = "SELECT *
FROM names
WHERE id = '$id'
AND name != NULL";
Is it correct?
source
share