SELECT tarih, sabah, oglen, aksam FROM yemek WHERE tarih=‘$bugun’
Looks like Turkish :-)
“select date, morning, noon, evening from… where…”
You could pick the current date on the MySQL server directly by calling a function on the MySQL server:
SELECT tarih, sabah, oglen, aksam
FROM yemek
WHERE tarih=current_date()
You can see this in action:
mysql> create table dailystuff (tarih date);
mysql> insert into dailystuff values ('2018-09-10');
mysql> insert into dailystuff values ('2018-09-11');
mysql> insert into dailystuff values ('2018-09-12');
mysql> select * from dailystuff where tarih=current_date();
+------------+
| tarih |
+------------+
| 2018-09-11 |
+------------+
1 row in set (0.00 sec)