I am using simple html dom to parse a link that contains two script tags with type=application/ld+json. The target website structure is like below, // tag that I want to parse
Tag: php
Error #1064 in creating function in MySQL
friends. I am trying to create function in MySQL using this script: CREATE FUNCTION CurrentMemoDepartment(MID INT) RETURNS INT BEGIN DECLARE DeptID INT; SET DeptID = 0; SELECT TOP 1 TDeptID INTO …
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 …
WordPress | Loop different col-md
I know the wordpress loop is done like this:
Symfony 4 CollectionType Constraints – array of strings
I have a very simple array of strings being stored in a database and provided via an API. Using Symfony’s form types I’m adding validation for various bits of data. I’ve hit a wall with a …
Checking for an overlap and if values are already taken
I’m trying to write an SQL query that must check if an overlap between two hours exists and if certain values are already selected or not. For example, you have a record in a table and you need to …
Get Stripe Customer ID on WordPress / WooCommerce
I’m building an e-commerce website which is linked to a mobile app. I would like to store the stripe customer id of a customer on WordPress after his purchase/subscription Is it possible? How? Answer This is possible by using the field : wp__stripe_customer_id
Laravel 6: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
everyone! I need some help. I’m creating a web app in laravel 6 that lets the user insert data through php forms that is also inserted into a database. Basically, I create a Supplier (it’s working), …
laravel 6 login successfully but redirect to login page
My environment is MAMP server on MACOS. LoginController.php public function authenticate(Request $request) { $this->validate($request, [ ’email’ => ‘required|email’, …
Integrity constraint violation in laravel
I am passing the ID in URL to get to the Form Page I want but I want to pass in the same ID when I hit the submit button and I want to pass in the same ID to the database table name “created_by” …