All Questions
1,589
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
2
answers
3k
views
How to execute stored procedure on click Html button? [closed]
I need to execute stored procedure which is on database, to on click Html button!!
name of stored procedure: DeleteRow
<form action="">
<input type="button" value="Check" onclick=""&...
-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>
&...
0
votes
2
answers
250
views
Insert one or more rows into database from a dynamic form containing repeatable and non-repeatable fields
This is my second post on the same issue, in my first post I was using mysql instead of mysqli so I have made some updates according to recommendations.
I have a form with variable sets of fields (1 ...
0
votes
3
answers
4k
views
Insert multiple rows to database from HTML form containing repeated fields using MySQLi
I'm trying to make a form that uses arrays so once it is submitted and processed multiple rows get inserted into my database. My main program is more complex than below but I could not get it working ...
-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)
...
4
votes
4
answers
290
views
Display query results as two column HTML tables within designated sections
So I want to fill and display a HTML table, that is 2 columns wide. But, no matter what I try, my data always sticks together.
The thing is, that I actually want to put the entire data into a table, ...
-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 ...