All Questions
3,438
questions
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. ...
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 ...
-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 ...
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'];
$...
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)
...
-2
votes
1
answer
99
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, $...
-2
votes
1
answer
100
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>
&...
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 ...
-1
votes
1
answer
75
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 ...
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 ...
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
{
...
-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>
<...
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</...
-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 ...
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 ...