Skip to content

Tag: php

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: …

Cannot connect database to heroku with PHP

I am not able to connect my database(.sql) file to heroku. I am using PHP for connecting database and frontend of webpage. The heroku page is showing the static site and for login page, it’s showing error while registering new user. It’s working perfectly fine when I run it on xampp server. On cli…

Laravel Undefined variable: messages

I am getting an undefined variable error after I have added this into my controller: I have a table with a details button the idea being it goes to a more advanced view and detailed to the specific message, I am having issues with it as it’s giving me an Undefined variable: message (View: C:UsersBradley…

How to increase/decrease the number in $_GET variable link?

I have a PHP page that utilizes a $_GET variable, “link”, to display a specific image on the page. My PHP page URLs look like “website.com/page.php?link=1” PHP Code: HTML I want to add ‘Next’ and ‘Previous’ buttons on this page, which will go to the next/previou…

Lint dynamic return types in PHP

I would like to be able to autocomplete when using my following code. I have looked for a solution, but just can’t seem to find anything. This is about what my models look like. In the following example I would like to be able to tab example and test My function to retrieve a model: This is how I call