pdo

MySQL and PDO query discrepancies

I have a problem to which I have not found a solution, the same query made from PHP with PDO returns different results when executed directly from the MySQL console (the results from the console are as expected).
From PDO it returns 2 resu…

PDO how to bind 2 int parameters

I have the following code:
$session_id_dummy = $_GET["session_id"]; //This echo’s an int
$time_id_dummy = $_GET["time_id"]; //This echo’s an int
include (‘databaseconnect.php’);
$stmt = $conn->prepare(&…

Redirect users to their attributed page [duplicate]

I want to redirect all users to their attributed page based on their privilege (user.php for user, doctor.php for doctors..etc) I tried this, but it redirects everybody to user.php. So I guess that I made some mistake while writing this co…

Display forums and cats

I am making a forum system.
I already know how to display the forums under its respective catagory.
I just need help to display everything in the way i want it.
Here is the code.
<?php
// begin cats
$sql = ‘SELECT * FROM forum_cats ORDE…

PDO drrivers no value in Debian 10

i using Laravel with connected DB. My PHP version 7.4, but i havent noone drivers PDO

I tried uncomment in php.ini extension=pdo_mysql, but its not working for me
apt-get install php7.4-mysql, again not working
How to fix that? Thanks all…

PDO drrivers no value in Debian 10

i using Laravel with connected DB. My PHP version 7.4, but i havent noone drivers PDO

I tried uncomment in php.ini extension=pdo_mysql, but its not working for me
apt-get install php7.4-mysql, again not working
How to fix that? Thanks all…

upload image to database pdo

I changed from mysql to pdo and now I’m asking myself, how I can upload an image file to database.
Here’s my code:
<form action = "" method="post">

<input type="file" name="image" requi…