All Questions
3,438
questions
-1
votes
1
answer
546
views
Query the parent table from child table in laravel
I don't know if the term or title is right but here is what i want to achieve.
I want to get the data of the parent from child table:
lets say Location hasmany Store, and Store hasmany Products
My ...
-4
votes
1
answer
60
views
How to build a family tree with colspan in PHP
I have question about looping out a family tree in PHP. I want the structure to be like this:
See picture
I have truble presenting the data in this way. This is my code:
$start_person = $_GET['search']...
-3
votes
1
answer
70
views
Little problem with display data from local server in html table with php and sql
Today I have a little problem, with basic and maybe funny thing. Today I wanted make table with data from sql server. For that I use Xampp for that and maybe is verry common choose for that. The ...
0
votes
0
answers
45
views
Connecting form that contains foreign keys to mysql database using php
I am begginer in php programming and Im tying to create an electronic medical reords system as a website where the admin registers patients and doctors and they are only able to login with the ...
0
votes
1
answer
51
views
Inserting data into mysql database using php in an html form
Please help out. I have an html form with meant to be submitted to mysql database. I have written the html and the php script for inserting data but it does not insert data into mysql and it throws an ...
-2
votes
1
answer
63
views
How to save a value ($title) from Foreach loop (SQL,PHP) to another page? [closed]
Page1:
View all movies as linked items.
<?php
session_start();
require_once 'db_connectie.php';
function alleFilms() {
$db = maakVerbinding();
$data = $db->query('...
1
vote
1
answer
52
views
How to SELECT SQL data using the results from a previous SELECT
Lets guess I have 3 tables:
Table a where I have a name and email
Table b where I have a text and user (as a reference to email from table a)
Table c where I have follower and following (both ...
0
votes
0
answers
100
views
Need help calling for a variable with my program that uses a qr scanner with php and js
I need to be able to call the id that is stored in the qr, but i dont know how to call it, i´m sorry for the horrible code its my first proyect.
<html>
<body>
<?php
function ...
0
votes
1
answer
39
views
Aligning data in a table according to each characteristics in php
I get data from a mssql database that I want to display in a table.
The table has three categories:
ORDER NUMBER
PAYMENT STATUS
ORDER STATUS
The problem is as follows:
I would like to align my order ...
-1
votes
1
answer
44
views
PHP How to take specific VAR from one php and place it in another severals php files into $sql value
I recently started with MySQL and it's my first time coding in php. So I hope you can help me:
I have a few php files like insert.php, update.php, delete.php etc. and in each of them is the same name ...
0
votes
2
answers
108
views
Doing PHP word processing
I have retrieved data from a MSSQL server table.
I was able to display them thanks to a query.
I would like to be able to modify these data without touching the table
For example the values which are ...
-1
votes
1
answer
46
views
Query String PHP
I'm trying to get the Owner's details by clicking on their name from the table at the bottom.
<html>
<head>
<title>Home</title>
<script src="//ajax....
0
votes
1
answer
37
views
How do I count the amount of times a user was redirected to a page? [duplicate]
I am making a security login where users can create accounts and log in. If the user enters the wrong information, they get redirected to another page where the input borders are red with a warning in ...
0
votes
0
answers
53
views
Deleting items with AJAX is reloading my page
So I have a list of content generated by a table in SQL + an external API. This is how I fetch the content:
for(i=0; i<userLiked.length; i++){
let API_URL = `https://api.rawg.io/api/games/...
0
votes
1
answer
50
views
Using PHP/HTML to combine and display data from two MySQL tables
For context, I have to tables named ho_shifts and ho_incidents. One which includes shifts, which there is always one unique and the other which includes incidents. One shift can have multiple ...