Skip to main content

All Questions

Tagged with
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