Skip to content

Convert an int to time()

I want to send a reminder email “x” days after an initial email was send. The admin can choose after how many days they want to send a reminder (after the date of the initial mail). This amount is stored in this function and returns an integer (for example 14) The date/time of that the initial email was send …

Return Array values from PHP Function

I’m trying to get the users from PHP form. PHP Function has to create new users (username, first name & email) with registeruser($user),that is to insert to database. I was able to insert only one …

Send APi key and secret key in CURL

I’m trying to convert the line below to be used with PHP whilst also learning how to use CURL! Bellow is what I have so far, however I keep getting HTTP ERROR 403 UnauthorizedException accessing service error, so I think the key and secret and not being sent correctly. Answer Use this tool as it save so…

Angular – PHP -> send mail null php values

I need help in my code, I’m trying to send a FormData from Angular to PHP and later send a mail, always appears the PHP vars empty, I’m doing something wrong and doesn’t see what On the HTML use formGroup and ngSubmit My HTML code: On the Ts use the FormControl Validators and the http.post t…

Database connection not configured

I am currently doing a local project, using MAMP with PHP version 7.4.21 and I can’t seem to run my system because the database is not configured correctly. Here’s my .env and here’s my database.php Answer DB_CONNECTION is the driver that you will use

How to Add data to Database in Laravels

I will to add data to database, but I have an error when I write the code to add data to array, and the error like this, syntax error, unexpected ‘=’, expecting ‘]’ I am using the follwing code: Controller Here’s the view Here’s the route Do you have any solution to this? I…