Skip to content

Tag: database

empty data in Laravel query

my response always empty ! if I run only one (where) separated in the Query I get data but if I run all three ( where ) Its empty ! my output Answer Change your controller code to something like this And if there’s an OR condition between branch and type then change your code like this

Error when saving data on a specific date and time

I have a server with Debian 10,Apache/2.4.38, MySQLi, mongodb and Php. The server is running a custom PHP program which allows users to upload their measurements (in .csv files) which are then stored in mongodb. The uploaded .csv files must comply with a predetermined format in order to be uploaded, like so: …

Add Year to NOW()

I am trying to add a year to a date going into a SQL database from PHP. I have tried DATEADD(Year,1,NOW()) And various other forms but can’t seem to get it to add a year onto it in SQL. <?php …