All Questions
1,591
questions
-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 ...
0
votes
1
answer
54
views
Mysql/html how to get output like this, or similar
PhpMyAdmin
Looking for output like this:
In Mysql/PHP, how can I get output like this, or similar (photo 2)?
$start = mysqli_query($conn, $sql);
if (mysqli_num_rows($start) > 0) {
$row = ...
-2
votes
1
answer
96
views
php variable not handling variables with spaces in them as it should [duplicate]
I am trying to get my mysql database to update a value in a column when a checkbox is checked/unchecked. This works for 1 word variable, but somehow refuses when the checkbox that is checked has 2 ...
-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>
&...
-4
votes
2
answers
113
views
how to write a statement to determine if the user is an admin? in php
My problem per my instructions
You will need to add an additional field to the members table to specify who is an administrator. This will be manually populated by the database administrator (you)
...
-1
votes
4
answers
119
views
How do i update form fields from DB after changing a <select> component
I have a form which lists a number of stars (stellar objects) upon there is a <select> control and two <inputs> I am needing advice on populating the two inputs from the DB upon the change ...
-1
votes
1
answer
58
views
How do I insert data to table from a while loop that fetch another table data?
I was try to get CompanyID and JobListingID from the while loop so after clicking apply button it can pass the data to another table called application, but somehow it only pass the latest ...
-1
votes
2
answers
1k
views
PHP form using Post. Error: Undefined array key [duplicate]
HTML:
<form action="submit.php" method="POST" >
<div class="file-input">
<input type="file" class="...
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 ...
-1
votes
1
answer
88
views
Echo back a newly generated (auto increment) user id immediately after form submission?
After my users submit some basic info in a form, how do I get the newly created userID to be echoed back to a hidden field on the header (redirect) page?
The first form contains basis Name, Phone, ...
-2
votes
1
answer
52
views
I'm trying to edit/update my product page using php prepared statement
I'm having problem trying to edit/update my product page which has multiple images using php prepared statement. if i have only one image in the image field it will update and unlink the oldimage ...
0
votes
0
answers
28
views
Can't link my HTML/CSS Register form to MySQL database [duplicate]
This is my first time trying to link an register/login form to an database. I've done some research on how I should do it and kind of followed an tutorial via youtube but I can't make it work.
This is ...
0
votes
1
answer
184
views
How can I use checkboxes to delete rows with php and mysql
I created a table with database information and tried to create checkboxes to be able to delete lines more easily, but something is not working correctly.
I have a button with form:
<form action=&...
1
vote
0
answers
29
views
Delete hyperlink and function not working on web page
I tried to add a delete "button"(link to file with function) it should delete a row from the database, but it didn't work. I looked for tutorials and answers on forums but found nothing how ...
-1
votes
1
answer
76
views
$File[] not receiving image from HTML form and sending to Localhost Database [duplicate]
1 month, 5 hours daily I try to fix my problem. Asking here and there but so far seems unable to find exact solution.
<form action="connectionfile.php" method="POST" enctype=&...