A prepared statement is one of the popular methods in PHP for database management. As a backend developer, it is necessary to learn about prepared statements in PHP. Here, we are going to see what is the prepared statement, what are the advantages, and how to use it with examples. Must Read: MySQL Queries and […]
Latest in MySQL
How to Delete Database in MySQL
MySQL is a database server to manage relational databases. There are some methods to delete a database from the MySQL server. Here we are going to learn to delete a database via MySQL command line. You can use Microsoft cmd, Linux terminal or MAC terminal which one you are using. In this tutorial, we are […]
Difference Between Primary Key And Foreign Key
Primary key and foreign key work on different concepts of MySQL table. Before starting comparing let’s understand what is the primary key and foreign key in MySQL table. What is a Primary Key? A primary key is a single field which uniquely identifies each record in the table. Note: Every Primary key is a Unique […]
[SOLUTION] Fatal Error: Uncaught Error: Call to Undefined Function Mysql_connect()
If you are getting “fatal error: uncaught error: Call to undefined function mysql_connect()” in your PHP project, then do not worry. Because here, we will resolve the call to undefined function mysql_connect() error step by step. Solution: Call to Undefined Function Mysql_connect() To solve the Fatal Error: Uncaught Error: Call to Undefined Function Mysql_connect(), first of […]
Mysqli_fetch_assoc vs Mysqli_fetch_array [With Example]
mysqli_fetch_assoc() and mysqli_fetch_array() both are used to print result data of SQL query in PHP. Mysqli_fetch_assoc vs Mysqli_fetch_array has just a single difference in accessing resultant data. Difference between mysqli_fetch_assoc() and mysqli_fetch_array() The major difference between mysqli_fetch_assoc and mysqli_fetch_array is the output format of result data. mysqli_fetch_assoc returns data in an associative array and mysqli_fetch_array […]