CentOS PHP 7 PDO MySQL Access denied 01/20/2016 - Unix/Linux - 11 Replies Hello,
I'm trying to using PHP 7 on my CentOS system. The Problem is that it's refusing my MySQL user thorugh PDO. I don't know why. I tried the same code on my local system, also running PHP 7, and it's working fine. Also I tried to connect through Navicat and it works too.
And yes I installed php70w-mysql.
atal error: Uncaught PDOException: SQLSTATE Access denied for user 'root'@'myCoolServer.epvp' (using password: YES) ...
Does anyone have a solution for my problem?
German:
[Ask]is php pdo is protect from sql injection ? 06/07/2015 - Web Development - 2 Replies This is my code
function clean($data) {
if ( !isset($data) or empty($data) ) return '';
if ( is_numeric($data) ) return $data;
$non_displayables = array(
'/%0/', // url encoded 00-08, 11, 12, 14, 15
'/%1/', // url encoded 16-31
'//', // 00-08
'/\x0b/', // 11
Help php trasnfer pdo 03/29/2015 - Web Development - 2 Replies $sql0 = "SELECT title FROM tickets WHERE hash = '".$hash."' AND Solved = 0";
$q0 = $web->prepare($sql0);
$q0->execute();
$q0 = mysql_query($sql0);
$dat0 = mysql_fetch_assoc($q0);
$title = $dat0;
if(mysql_num_rows($q) != 0 || mysql_num_rows($q0) != 0)
PHP PDO MSSQL Fetches 11/09/2011 - Web Development - 0 Replies Hallo @all,
ich bin gerade auf ein Problem gestoßen und hoffe dass mir jemand helfen kann.
Man kann ja, wenn man PHP und MySql nutzt eine Abfrage machen und während man diese Abfrage ausgibt kann man mit diesen Daten ja eine weitere Abfrage starten (während man sich noch in der Schleife zum ausgeben der Daten befindet).
Ich dachte dass es mit PDO und MSSQL auch geht, was aber leider nicht der Fall ist.
Denn da hatte ich als Test eine Abfrage gemacht und während ich mit einer Schleife...