Skip to main content

All Questions

Tagged with
-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']);...
LD Bhatt's user avatar
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 ...
Mikka Kummer's user avatar
0 votes
0 answers
101 views

Display stored database image on webpage using session?

Hi I'm trying to store image into database using session and its successfully done but problem is that its can't display on my webpage when I upload the page and click on save button the previous pic ...
user avatar
0 votes
1 answer
33 views

cant update image but can update the details

I'm trying to update the supplier details along with the image. The details are being updated to the database but the image is not getting updated - the old pic is still on the database. No error is ...
Lisa 's user avatar
  • 13
1 vote
1 answer
104 views

Using jquery and ajax to call a php file to load data into multiple divs

thanks for clicking on this question, I'm trying to add a new function that whenever I click on a button, it will load multiple rows of items into a div. This is my code for the div <div id="...
Trelaquix's user avatar
0 votes
1 answer
55 views

"mysqli::query(): Couldn't fetch mysqli" when using MySQL to populate multiple drop-down boxes on PHP/HTML form

I have created a form with a drop-down element that reads a MySQL table to populate the options and when it writes the form data to a different field, it writes the row ID for the option selected. ...
Christopher H's user avatar
-1 votes
1 answer
94 views

How do I display the record before deleting that record?

I wish to display the record to the user that I am deleting in PHP? I am trying to display the record in a form that I want to delete but only the input type = text values are being displayed and the ...
user15499013's user avatar
-3 votes
1 answer
169 views

Php / mysqli forum

So i'm pretty new to MySqli and PHP and I'm trying to create a forum. I'm now stuck at this point, I get the forum to show my "boards" and "threads" but it shows the same threads ...
Oskar Andersson's user avatar
1 vote
0 answers
19 views

Posting once a task once day using date [duplicate]

i want my users to be able to post a task once a day and if they have posted that day they cant post again till the next day but the codes i know arent working for me please guys help // initializing ...
AKATUGBA's user avatar
1 vote
2 answers
53k views

I keep having Uncaught TypeError: mysqli_error(): Argument #1 ($mysql) must be of type mysqli, bool given [duplicate]

I would be really grateful if someone can help me solve my problems. one of the problems is that when I enter correct data and press submit it keeps showing me this error: Fatal error: Uncaught ...
lujain althumairy's user avatar
0 votes
1 answer
833 views

Form field with Min and Max price

Good day guys i have this code that select min and max price, when I assign value it doesn't filter Here is the HTLM form <form> <select class="custom-select my-2 border-left" ...
Ezekiel Chimkwanum's user avatar
0 votes
1 answer
109 views

Multiple user input Search

I want this code to query msqli database base on user multiple filer choice but its not responding for other input fields, what's the error $ret=mysqli_query($con,"select * from products where ...
Ezekiel Chimkwanum's user avatar
1 vote
1 answer
41 views

Wanting index.php to load when loaded

I have almost created a fully working dynamic page using PHP OOP. I have successfully created a working menu - that is when a menu item is clicked, relevant text is displayed on the page. However, ...
user3511057's user avatar
0 votes
1 answer
297 views

How to retrieve (view) image from database in PHP? [duplicate]

Good day! I have created a form to insert and retrieve data. I need to add a section to insert an image through this form into the database and display it back. But, I don't know the right way to do ...
Aida Amyrah's user avatar
0 votes
1 answer
80 views

How can I Fetch data from database from different tables at the same time PHP MYSQL

I have 2 tables that are related to one another. The first table is a product table which includes (Product_id,product_title and product_price) and the other one is images table which includes (...
Erol Ramacik's user avatar

15 30 50 per page
1
3 4
5
6 7
107