Category: PDO
-
Update Query In Laravel With PDO or Sentinel
Hello to all, welcome to therichpost.com. In this post, I will tell you, Update Query In Laravel With PDO or Sentinel. I am doing with laravel first time in my website. Laravel is one of the top php mvc framework. PDO is oops based and more securable then mysql and mysqli. Here are the Update…
Written by
-
How to add PDO in laravel?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to add PDO in laravel? I am doing with laravel first time in my website. Laravel is one of the top php mvc framework. PDO is oops based and more securable then mysql and mysqli. Guys if you are new in…
Written by
-
PDO select query with case statement
Hello to all, welcome to therichpost.com. In this post, I am showing PDO select query with case statement. First time I am showing mysql pdo case statements. Here is the working code for PDO select query with case statement: <?php$servername = “localhost”;$username = “root”;$password = “root”; try { $conn = new PDO(“mysql:host=$servername;dbname=user”, $username, $password); //…
Written by
-
Use StdClass Object In PDO
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to Use StdClass Object In PDO? PDO means PHP Data Object. PDO is more secure and it is opps based. In this post, I will use php StdClass in pdo query with creating custom StdClass properties. stdClass is PHP feature. With…
Written by
-
How to display mysql data in table format using pdo?
Hello to all, welcome to therichpost.com. In this post, I am showing mysql data in table format using pdo. Table format will be same like mysql. This code is very interesting and will show all the data with column names and data structure as same as mysql table structure. Here is the working code for…
Written by
-
How to make like query in pdo mysql?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to make like query in pdo mysql? PDO means PHP Data Object. PDO is more secure and it is opps based. Here is the working like query in pdo mysql and you can do like this query: <?php //You can define…
Written by
-
Insert query example in mysql using pdo
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to Insert data in mysql using pdo? PDO means PHP Data Object. PDO is more secure and it is opps based. Here is the example code for Insert query example in mysql using pdo: To connect with mysql with pdo, you…
Written by
-
How to connect mysql database using pdo?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to connect mysql database using pdo? PDO means PHP Data Object. PDO is more secure and it is opps based. Here is the example code for connect mysql database using pdo: define(‘DB_SERVER’, ‘localhost’); define(‘DB_USERNAME’, ‘root’); define(‘DB_PASSWORD’, ‘root’); define(‘DB_DATABASE’, ‘testdatabse’); class Connection{…
Written by