All Questions
1,007
questions
1
vote
2
answers
97
views
Is this good way to use php in html page
<?php
require_once('dbcon.php');
$query = "select * from indexpage";
$query2= "SELECT * FROM `blogintro` ORDER BY `id` DESC;";
$query3= "SELECT * FROM `indexjob` ORDER ...
0
votes
0
answers
30
views
how to handle the undefined array key problem in php [duplicate]
**i was trying to show the result in like a list in a page , but it shows undefined array key problem . i'm still learnign php and new to thisenter image description here. how to fix this ? i'm ...
0
votes
0
answers
40
views
problem with POST route in nextJS and MySQL
I'm starting with NextJS (and web at all) and I'm trying to make a route to add a pokeId to a user (mysql database), but I'm encountering problems
Prisma Models:
model User {
id Int @id @default(...
2
votes
0
answers
32
views
Input tag is not selecting multiple images in some devices
I have created a website where users can upload the questions with images. For that purpose I am using input tag with "multiple" attribute to select multiple images and upload it into the ...
0
votes
0
answers
41
views
sync data from mobile app to DB and show it on web page
I developed an Android-App and now I want to sync the data from the app to a database.
The solution i found was to use volley to post a request to php script, which also handles the db communications. ...
0
votes
0
answers
27
views
How to store product specifications table in database [duplicate]
In product detail page, I want to display a table of specifications with two column and many rows. I could do it easily by storing the specs in JSON file, but I guess it will not be the best way as ...
-4
votes
1
answer
327
views
why can;t I open my php file on localhost?
This is my code:
<!DOCTYPE html>
<html>
<head>
<title>Retreat Reservation System</title>
<link rel="stylesheet" type="text/css" href=&...
2
votes
2
answers
84
views
i am getting an error as "Cannot set headers after they are sent to the client" in node js connected to mysql
i was tring to create a signup form connecting react to the backend using node.js. it worked fine, but now i am facing problems as
Cannot set headers after they are sent to the client
when the ...
2
votes
1
answer
315
views
Spring GraphQL return NULL
I want to create my own website in the form of a blog using Spring Boot and GraphQL API, but I don't understand how to connect the database to GraphQL. When making a request through /graphiql, it ...
1
vote
1
answer
4k
views
Cannot autowire service "App\Controller\MainController": argument "$session" of method "__construct()"
There is my MainController:
<?php
namespace App\Controller;
use App\Entity\ShopCart;
use App\Entity\ShopItem;
use App\Repository\ShopItemRepository;
use Doctrine\ORM\EntityManagerInterface;
use ...
0
votes
1
answer
272
views
bad post request, code: 'ER_BAD_NULL_ERROR', errno: 1048, sqlMessage: "Column 'user_name' cannot be null", sqlState: '23000' (angular)
I have a problem with posting data to Api and sending it to the database, the values are sent NULL to the >database.
here is the code i used:
component typescript
component html
api node.js
I ...
-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 ...
1
vote
1
answer
47
views
With existing "mySQL Database" and "website", want to connect/synchronize both part how to accomplish by Python
Main problem: I have existing mySQL Database and website, how do I connect/synchronize both, that input or update from mySQL, can also result in website too
I did learn HTML, CSS but was required to ...
1
vote
0
answers
197
views
MYSQL LOCAL INFILE command server wants to read - ExpressJS, Mysql2
I am trying to import a CSV programmatically into my web app, and when I make an SQL request I am met with this error
Error: As a result of LOCAL INFILE command server wants to read path/to/myfile.csv ...
0
votes
0
answers
161
views
How to store pdf resume files in the file system and save link in mysql in a laravel project
I am working on a project in laravel that stores the query and informations about organisation staffs. For that, I need to store their photo and resume in pdf format. I am using Image Intervention ...