Please note I'm a beginner in SQL and PHP and I search =every where but didn't found anything useful I want to select two data from the following table.
id | name |
---|---|
1 | Joe |
2 | John |
my code
else if($_SESSION['name']=='Joe')
I tried use this syntax but didn't work =='Joe', 'John', ==('Joe', 'John') Please help me
CodePudding user response:
select name from table where name in ('joe','john')