Skip to main content

All Questions

Tagged with
1 vote
0 answers
56 views

PHP PDO prepared statement with IN [closed]

Here's my code: ...
1 vote
1 answer
74 views

Updating multiple database tables when products are shipped back by customer

So, in this example I have to make these changes in my tables: Select Product Data => SKU, QTY Insert into shipping_back table Update in shipping_back to current date Update in customers to ...
1 vote
1 answer
83 views

Reduce database touches for one to many data pull

I have the following function which works properly and returns all of the rows from a specific table, then loops through each row to add data related to it as a subarray. ...
4 votes
2 answers
205 views

Using a transaction to create account records

This is my first time using commit and rollback. I just need to know if this is a proper execution of the functions for this particular situation: ...
5 votes
1 answer
144 views

Storing and confirming user input

I am a beginner, and I'm trying to secure a sign-login system on my website. Is my code good/enough to prevent SQL injection? THIS IS THE SIGN FILES This is the index.php that takes user input: ...
3 votes
1 answer
806 views

Does PDO::quote helps me to protect me against sql injection?

I have to process raw sql user input with Laravel. I've backed them up as follows: ...
1 vote
1 answer
101 views

Displaying a paginated list of forum topics using PHP PDO [closed]

Can someone tell me if this code is safe? Can be sql-injected or something else hacked? Code get some rows from db and show in pages with pagination... if i can improve let me know and show me how, ...
2 votes
2 answers
84 views

ORM class for Posts

I'm new to PHP OOP and I'm making some tests. I have 2 classes: database and posts and the two interact with each other. Class Database: ...
3 votes
1 answer
1k views

PHP + PDO - Inserting data on the table with a loop

First of all i made a simple code to insert data on my table, with the information from this code i made a loop to insert data on another table for a notification system. I'm new to PHP and i think ...
2 votes
1 answer
89 views

Insert data on Data Base using PDO Prepared Statement

...
2 votes
2 answers
101 views

Is this a 100% safe from SQL Injection and will work correctly for any input? [closed]

...
2 votes
2 answers
416 views

A simple PHP login system

I'm super new to PHP and I'm trying to get a functional login system together. This is the code I have: class/user.php ...
1 vote
1 answer
4k views

PDO Dynamic query builder

I'm trying to improve my php oop programming skills. As an exercise I wrote this class that will generate and execute dynamic sql queries. I've also writed a class to call various sanitization filters ...
4 votes
3 answers
345 views

PHP Signup & Login

I want everything to be well and secure with my authentication code. I've done many signup and login systems before but just for testing purposes, and didn't take into consideration all the security ...
1 vote
1 answer
62 views

Insert and update SQL entries for posts to be accessed by up to 3 other users

At first, I have this HTML I use here: body { text-align: center; } ...

15 30 50 per page