All Questions
1,588
questions
0
votes
2
answers
67
views
ChartJS showing incorrect data on the X-Axes
I require assistance with ChartJS, it is showing data for months that do not even exist in my MySQL database. I have data for August and September in the database, there is no data for the rest of the ...
0
votes
1
answer
117
views
How to count the arrays from a result of a query? [duplicate]
I have a query that I make using PHP and it returns me all the rows that satisfied the condition that was given, now, I'm wondering if there's a way to count each number of row a result of a query has ...
-1
votes
1
answer
35
views
Seprate values from mysql column data with php
I want to echo a column value, which is working fine, But I want to break the line when there is a comma came in, so I want to get each value in one line. ipd_medicine_name column has multiple values ...
0
votes
1
answer
237
views
PHP/MYSQL News Ticker not showing results in one line
i want to make a news ticker for my website where users can read the last 5 news but when i put the whole code i get the 5 results but in a different way... all 5 results should be like 1 - 2 - 3 - 4 -...
-1
votes
1
answer
3k
views
How can I create a dropdown menu to search my MySQL database?
I have to create a search form to retrieve data from a MySQL database.
I used this to create a dropdown selection of one category. It does work, and the menu is clearly linked to the database, because ...
-2
votes
1
answer
112
views
Data not saving in session variable
The data is not storing in session everything is working fine the login system all things but the Data like username user pass and user Id should be saved in session but it's not I know it because if ...
0
votes
1
answer
51
views
PHP form validation not functioning having copied the tutorial code
I am hoping the community can give me a little insight into what is not working with my code, I am following a Udemy course. I have followed the accompanying video which developed an undefined ...
0
votes
0
answers
254
views
How to insert DATETIME & BOOLEAN values using MYSQLI parameter binding? [duplicate]
On submission, this is my code:
if(isset($_POST['send_money'])) {
$date = explode("/",date('d/m/Y/h/i/s'));
list($day,$month,$year,$hour,$min,$sec) = $date;
$transaction_id = '...
0
votes
1
answer
1k
views
Display image from database, gives about:blank#blocked when i try to acces image
I am trying to display image from database but i can't figure it out how to display it, this is how i upload image
//image upload + validation
$file = $_FILES['image'];
$file_name ...
0
votes
0
answers
33
views
Send value checked in toggle box = not sending value
I am trying for days now to get this toggle box to enter the value 1 in my db but without succes. The code i am using is:
<?php
if(isset($item_id) && $item_id > 0) {
$setting = ...
-1
votes
1
answer
1k
views
How to create a delete button for each row in the table?
I'm trying to write a PHP code that connects and get data cells from mySQL and also create a delete button for each row as it's increming as in mySQL database.
Please help me to figure out what am I ...
1
vote
1
answer
37
views
Multi-field form to sql method post request [closed]
My html page contains 5 fields. They are not all necessarily informed.
Method post sends the content of the fields to a php page.
The query must only extract from the database the rows concerned by ...
0
votes
1
answer
1k
views
Using table data from SQL as options in select input [duplicate]
I have a table called "Registration" for registering into clubs with the following columns 'clubName' and 'registrationStatus' clubName contains the name of clubs and registrationStatus ...
-3
votes
1
answer
91
views
is my php code is okay to avoid sql injection [duplicate]
I have very old php application and I am avoiding sql injection like this: Is this will avoid sql injection?
<?php
$con = mysqli_connect($var['dbhost'],$var['dbuser'],$var['dbpass'],$var['dbname']);...
0
votes
1
answer
31
views
Individual Checkbox on HTML Table
I am currently displaying my HTML data through a PHP script into my Table on the Website.
No here's the problem: I want to have a checkbox besides every entry on the website, the user can then check ...