How to get last inserted id in PHP MySql

If we insert a row into a mysql table that contains an AUTO_INCREMENT column, we can retrieve the value stored into that column by using the PHP function mysql_insert_id(). so we no need to create separate query to read the newly inserted value. What is differences between LAST_INSERT_ID() and mysql_insert_id()? The reason for the differences […]

SQL Select, Insert, Update and Delete Syntax

This article is about the database language Structured Query Language (SQL). It is a database computer language designed for managing data in relational database management systems (RDBMS). In this page, i have listed the SQL syntax for each of the SQL commands. this is an easy reference for someone to learn Structured Query Language (SQL). […]

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com