I am developing a web page (2075.mooo.com, (it is in Catalan)) where teachers control students’ arrivals with an NFC card in an Arduino. The thing is that I save students’ data on .txt files, but …
How to display a record that has no relation to a table
What I need is to count the number of vehicles created by each user, but the problem is that when I make the query for the relationship, it only brings up the users who have vehicles created, but I also need to show the users who do not have vehicles created. what i get id name email vehicles 65 name1
Define undefined array key in php
I’m using the following web to insert two codes separated by the letter “k” in just one field. <?php if(isset($_POST['submitButton'])){ $input=$_POST['input']; $…
Coinbase API – Transfer returns response 200 instead of 201
I am trying to create transfer between accounts of the same user with different crypto currencies using the Coinbase API. I am using it’s official library which I know wasn’t exactly maintained but I …
Add Pagination to relationship and get the relationship’s relationship – Laravel
I am building a forum website using Laravel and Vue. I have three tables: forums, posts, and users. One forum can have multiple posts, each post has a user who created the post. When the user clicks on one forum, I want to display the latest 10 posts to this forum with the paginate method. Forum.php Post.php …
Why Inserting a value in a nullable field from a HTML FORM gives me a NULL even if it is not?
I created a database with a table that contains both mandatory and nullable fields. When I insert mandatory fields everyhing works fine, but when I try to insert a value in a field that is optional and can be NULL i always get a NULL result when checking the database. Here’s the code: (user_id is mandat…
How can I display multiple lines of version.php?
I’m new to PHP code and am trying to find a way to display 3 lines from the version.php file within WordPress without having to download the file; look into it and move on – this is what I have come up with so far, but does not seem to be working. I’m sure I’m doing something wrong her…
How to get PHPUnit testing working with a function that returns an IP?
I’m just new to TDD and I’ve installed PHPUnit with PhpStorm. I have this class and function, and I want to test for the IP address match. I’m trying to create the code for the test, and I’m not sure what to put in. I have tried But $test is undefined obviously. What should I do next? …
disable symfony 5 database connection
I have the default config in my symfonu project I have this line at .env file and I get this error Of course I dont have not isntalled postgres, and I dont need a database for this project, How I cant fix this error I tried to comment the .env file line but I get another error Answer Commenting the
Symfony 5 Fast Track: Database access error
I’m trying to go through the aforementioned tutorial, but I get stuck on the stage between Step 7 and 9 – when the database goes into action. On local server I get and while on my deployment server everything seems to work good when reading the database: https://akodg6sfgq-gijxpyj6oxpig.eu.s5y.io/…