python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Update db with hashed pw using the password_hash and password_verify
I am just a little confused as to where I can fit it in this file. The file is for pw validation currently but I would like the pw to be hashed using password_hash. That being said I understand how pa...
Liam Arscott B
Votes: 0
Answers: 1
JSON nested array parse via PHP
I need to loop through and print all nested data within the "players" array and sort by "wonAmount." I can get my PHP to print out a single value, which I target, but I can't get i...
Shenmue OG
Votes: 0
Answers: 1
How to calculate cart item's discount based on discount type [ Buy1 Get 1 offer ]
I have a table in my DB.
Carts Table:
id| user_id | product_id | title |price |tax| quantity | discount | discount_type
1 | 1 | 2 | Watch | 50 | 5 | 2 | Null | buy1get1
2 |...
Ra3d K
Votes: 0
Answers: 1
Set appName for PDO connections made via PHP
I use PDO in PHP to connect to a PostgreSQL database.
Does it allow setting the application name when making this connection?
try {
$conn = new PDO ( 'pgsql:host=' . $host . ';dbname=' . $dbname, ...
Tom
Votes: 0
Answers: 1