Skip to main content

All Questions

Tagged with
-3 votes
0 answers
45 views

PHP login code will not proceed past $result = mysqli_query($conn, $sql); [closed]

im trying to create a login page for my website and I am trying to just get the function to work but the code wont make it any further than $result = mysqli_query($conn, $sql); and i dont understand ...
Ryan Llewellyn's user avatar
0 votes
0 answers
80 views

HTML & PHP page loading becomes slow for 3 while loops [closed]

The loading time of the page is very very long, and the small sections is coming one by one. It is because I am using 3 WHILE loops. Is there any other way so that I can reduce the loading time ? My ...
Abhijit's user avatar
  • 11
0 votes
3 answers
68 views

how to make cells in <td> tag

I have a table like this : No Name Product Type Num of Units 1 ADA B112 3 Pcs 2 ADA B253 1 Pcs 3 ADA K23 6 Pcs 4 DUZK l1 10 Pcs 5 DUZK l5 10 Pcs 6 Naro NX 1 Pcs I have this SQL : $query = &...
Ricky Suwandi's user avatar
0 votes
0 answers
20 views

Only my first SQL statement is working, the following statements appear to be broken [duplicate]

I am a student creating a dynamic website for a school project and I'm attempting to implement a checkout button which selects all items from the basket and inserts each of them into a new order. ...
olibutler's user avatar
0 votes
0 answers
41 views

Using Ajax for Labels

I am working on a website page that displays and loads up the menu details once the user clicks on a label by using ajax but it seems that it is not working, I am new to ajax if anyone could review my ...
Stu123's user avatar
  • 1
-2 votes
1 answer
54 views

How can I get HTML/PHP to just print the data from my SQL database without all the Array Jargon

I'm currently learning how to use PHP and SQL in tandem. I'm trying to use PHP to display data from my database straight onto my website. I know it's probably rudamentary, but I have scoured the ...
Jethro Blemur's user avatar
0 votes
1 answer
29 views

Laravel Searchbar Function Returns Undefined Key

My laravel searchbar is returning Undefined Key. It is returning Undefined Key: 'Search' Here is the controller function: public function search() { $search = $_GET['search']; $...
tooManyDivs's user avatar
0 votes
0 answers
34 views

Filter by Hashtag Search Button

i am trying to allow users to filter comments by the hashtags used in them but i am very new to php so do not understand how to link them together (the search button in my html and search in my php) ...
HEY's user avatar
  • 1
-2 votes
1 answer
106 views

Uncaught PDOException: SQLSTATE[21S01]: Insert value list does not match column list [duplicate]

So i've tried for the past hours to make sense of this Exception but it keeps saying the insert value list doesn't match column list. This is the code for my php: function insert_data($humidity, $...
ABagFullOfOranges's user avatar
-2 votes
1 answer
101 views

Unable to get row values along with dropdown list [duplicate]

<thead> <tr> <th>User ID</th> <th>User Name</th> <th>Designation</th> <th>M a r k A t t e n d a n c e</th> </tr> &...
Jitesh Gala's user avatar
0 votes
0 answers
37 views

Total rating and average rating star showing wrong [duplicate]

I am trying to learn by doing some projects, this it helps me to learn better but I got stuck in between I am trying to display Average rating and total rating and Total reviews but it is not show ...
Jathura's user avatar
-1 votes
1 answer
76 views

how to write a line breaker for sql data in html

I want to show the data which is stored in sql column like a package details of a tour. when i am calling that column it's displaying details but it's not showing in clean and neat way. It's ...
Anand's user avatar
  • 1
0 votes
1 answer
36 views

I am working on an inventory program (web based) for my local gameshop. Trying to create an update page. Values are not carrying over

I have the first page that displays current inventory. Works fine. I have the second page that displays items that match the SKU entered on the first page. If I select the first one, values for ...
smaschek's user avatar
0 votes
0 answers
23 views

FILTER_VALIDATE_EMAIL works for fake email but not an actual email [duplicate]

I write a fake email like name.fakegmail.com and it allows the email but i write my actual email and it's invalid. Any ideas of why this could be happening function invalidEmail(string $email): bool { ...
Alain Puron's user avatar
-1 votes
1 answer
31 views

What is wrong with my sql requesting query? [duplicate]

I try to build my website with sql requests but when I try to make some request it gives me an error. I am a newbie in web, so I can't say what is going on. Can you help me? <!DOCTYPE html> <...
Nikolai Bogdanov's user avatar
0 votes
1 answer
48 views

if (isset($_POST['UpdateBtn'])){ } to stored my input in variable and call the function but when I clink the button name(UpdateBtn) nothing happened

<?php if (isset($_GET['trn']) && $_GET['trn']=='UPDATE'){ echo '<button type="submit" class="btn btn-primary addOrder" name="UpdateBtn">Update list</...
roiden's user avatar
  • 23
-4 votes
1 answer
88 views

How can I check if user-entered email is already saved in my database before submitting the form?

I want to check whether the e-mail entered by the user in the form has already been saved in the database. I got help from Chatgpt, but I still couldn't do it, it runs the form completely without ...
Sytehel's user avatar
0 votes
1 answer
35 views

How do I transform my <img> tag from javascript to actual picture in php?

I'm making a chat in html with php and I want my users profile pictures next to their message. I fetch the text, name and img tag of the profile picture from a sql table but when I create a div with ...
Maya's user avatar
  • 11
0 votes
1 answer
84 views

How to run 2 sql queries in php to different table to make dropdown lists in html form?

Trying to make a user input form in html where the user select input is based on drop down lists. The first drop down list is made in php from an sql query to one table and the second drop down list ...
user21397714's user avatar
0 votes
1 answer
30 views

Updating a task on my website deletes a picture that the item contains - how do I fix this?

PHP: <?php require "../konekcija/konekcija.php"; require "../modeli/zadatak.php"; require "../modeli/kategorija.php"; session_start(); if (!isset($_SESSION["...
Mihailo Mitrović's user avatar
-1 votes
1 answer
134 views

How to import database sql/csv file using an html button?

How can I import database file using an html button? I tried creating an upload button and tried to upload a imported sql file from database but the data don't go to the database <?php require &...
REYES MARK M.'s user avatar
0 votes
0 answers
35 views

Failed to get sum of a specific row in php [duplicate]

Failed to get total of students in a specific class from mysqli Am trying to get the sum of students in a specific class from table. I have a code that gets duplicated rows so I want to count those ...
kato james's user avatar
0 votes
1 answer
91 views

combining multiple query results into one and I have different column name and displaying in HTML table

I have a table which keeps the record for letter send by different department to different region(A,B,C) in Hindi or English language as given in the table. I want to count the number of letter send ...
leraner's user avatar
  • 65
0 votes
2 answers
130 views

Convert HTML Code with quotation marks to string for SQL insertion

Let's take this sample HTML: <div class="card custom-card mt-3"> <div class="card-body" id="default"> <div class="row">...
consolenine's user avatar
-1 votes
1 answer
59 views

Search value in database with html and php

I just want to add search system for my website My PHP Code: <?php $button = $_GET ['submit']; $search = $_GET ['search']; //connect db $con=mysqli_connect("localhost","root",&...
Copter's user avatar
  • 1
1 vote
1 answer
43 views

How to trigger form submission with button outside the form with form being created dynamicaly based on selection from a dropdown menu?

So I have a basic form with three input fields and a drop down menu that dynamically creates three diff forms. A button in the navbar "Add Product" Without the drop down menu the data is ...
Divan Gerber's user avatar
1 vote
0 answers
63 views

Saving meta box data from selected option's value in database is not working

I have added a organizer input filed using "select and option" tag, screenshot - https://prnt.sc/DtiJr5W178_g Here is my full code - // Callback function for Metabox function ...
Md maniruzzaman Moon's user avatar
-2 votes
1 answer
470 views

Create a sort by function in HTML that allows you to choose Popular, A to Z, Z to A, Low Price to High or High Price to Low, mostly done [duplicate]

I am trying to create a sort by function on my webpage that can allow a set of products stored in an SQL Database, to be sorted by some different options as shown in the title. I have created the ...
Nicko Toumbas's user avatar
-3 votes
1 answer
77 views

How to UPDATE table without WHERE clause in php? [closed]

I would like to update table data on user input without a where clause. I tried using the code below, but it shows "500 Internal server error" form code (test1.php): <html> <form ...
Md101's user avatar
  • 15
0 votes
0 answers
57 views

How do i print a specific row based on id number?

So when i click the link ''What are SMTP, IMAP etc'' it should only show the article about SMTP but instead shows both articles. How do i show each article to their own titles? right-column: <div ...
pistachio's user avatar

15 30 50 per page
1
2 3 4 5
115