All Questions
1,589
questions
0
votes
1
answer
43
views
insert new name for radio buttons in php loop
Within this loop I have:
while($row = mysqli_fetch_assoc($result)) {
$name = 1;
$a = $row["a"];
$b = $row["b"];
$c = $row["c"];
...
0
votes
0
answers
28
views
I am trying to build a project to display uploaded images with php and mysql, I have uploaded the images but I can't display it on the browser [duplicate]
Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetchAll() in C:\xampp\htdocs\RENT\component\test-folder\test.php:10 Stack trace: #0 {main} thrown in C:\xampp\htdocs\RENT\component\...
-1
votes
1
answer
54
views
While loop finding the last iteration only
*How to solve this..??
My while loop is finding the last iteration only, If I select last attendance A then all the student's values will be 0, if I select P then all the values will be 1. So, how can ...
-1
votes
3
answers
143
views
How to execute sql code based on fetch array
I have a search engine that I found on google and I would like to search in the 'barcode' database that I have and if it finds the person it executes the code that is under $statement (I added that ...
0
votes
0
answers
38
views
AWS Ec2 to RDS mysql internal error 500 from external user from php code [duplicate]
Solved:
I feel really novice now... and after I did all the installs etc to this new ec2 server I forgot to restart apache..... after getting the error message appeared with adding in the php code ...
-2
votes
1
answer
2k
views
Uploading an image from an html form input to database blob column [duplicate]
I want to upload data from a html form to a database, here's my html code:
<form method="post" action="events.php" id="formhh" enctype="multipart/form-data"&...
0
votes
0
answers
23
views
Fetch single data in form from mysql by using php [duplicate]
I want to fetch single data in form by using PHP.
Here is my code written in html file to fetch single data in form by using php
<form action="fetch.php" method="post">
&...
0
votes
0
answers
17
views
How to select all table names from a database and show them in select option(or dropdown) in php and msqli [duplicate]
How to select all table names from a database and show them in select option(or dropdown list) using php and msqli.
$db_selected = mysqli_select_db($data,$sub);
if(!$db_selected)
{
die (&...
1
vote
1
answer
40
views
how to make a limit 20 users maximum to choose one package
This is my code that is responsible for assigning every package name chosen to that
specific userName my idea is to add another query such as
query = select userName from users where userName = '...
-3
votes
1
answer
335
views
Why am I receiving null as a response for an sql column with data in it? (PHP)
I am building a log in system and every other part works perfectly fine except for the portion that cross references the entered password with the password in the database. So when I checked to see if ...
0
votes
2
answers
69
views
How do I display different table from 1 table? Like each table has unique code
This are my db table:
But my query only get 1 row for each table like this:
As you can see, there are 2 tables for 1003 because it has 2 rows. It should be only one (1) table of 1003 with 2 rows. ...
-2
votes
1
answer
73
views
Issue with view page on php and html [duplicate]
Can someone help me with the following PHP/HTML coding in which I am getting the following error message.
"Warning: Undefined variable $result in C:\xampp\htdocs\view1.php on
line 30
Fatal error:...
0
votes
1
answer
93
views
Form to post into database table
I'm trying to make a form that posts the index.php input to my database table using index.php and connection.php. Also I'm trying to specify everything else to be in letter format except the phone ...
-2
votes
1
answer
346
views
Check if fields are empty if not change value in mysql table [duplicate]
I'm trying to do a change user info part on my website, everything works except the change username part.
In this part I have to check if the newUsername is not taken and then change it (if its not ...