Hello,
I am trying to do sth for work which doen't work and i am really frustrated.
the query
[PHP]$myquery="selec t * from tbl_routes where DAYNAME(rt_Depa rture) AS rt && rt='$weekday' && rt_FK_Destinati on='$dest' && rt_FK_Departure ='$dep' ";[/PHP]
is supposed to give back the flights which leave on sundays ( rt='$weekday' ) where $weekday='Sunda y' but rt='$weekday' doesn't give me any results. I get a mysql error that mysql_fetch_arr ay is invalid. Any ideas what's wrong about that?
thank you
I am trying to do sth for work which doen't work and i am really frustrated.
the query
[PHP]$myquery="selec t * from tbl_routes where DAYNAME(rt_Depa rture) AS rt && rt='$weekday' && rt_FK_Destinati on='$dest' && rt_FK_Departure ='$dep' ";[/PHP]
is supposed to give back the flights which leave on sundays ( rt='$weekday' ) where $weekday='Sunda y' but rt='$weekday' doesn't give me any results. I get a mysql error that mysql_fetch_arr ay is invalid. Any ideas what's wrong about that?
thank you
Comment