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 […]

JavaScript to scroll the text vertically like reel

Continuous announcement scroller JavaScript will create a simple text scroller using javascript. it’s not a simply message display instead the message will scroll vertically from bottom to top like roller and many message display at the same time. Display the text announcement one at a time with no break between the first and last. we […]

PHP Split a string by string using explode method

php explode — Split a string by string Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delimiter. Example 1 <?php $example  = “example1 example2 example3 example4 example5 example6″; $result = explode(” “, $example); echo $result[0]; // example1 echo $result[1]; // […]

Simple C#.Net Encryption and Decryption for String

There are many ways is there to encrypt and decrypt the data in c#.Net. In this post we have simple sample code to implement the cryptography algorithm in C#.Net to encrypt and decrypt information, either passwords or connection strings. This code uses the System.Security.Cryptography namespace to do the encryption and decryption. Please find the code […]

C#.Net convert date to string and string formatting

It’s very easy to convert date time to string in C#.Net. To convert DateTime into string you can use String.Format function in C# ASP.Net. And to convert string into DateTime you can use Convert.ToDateTime function this post will show how to do this conversion. If you have Date Time value in the Data table and […]

How to create auto number, Serial number, Row number in DataGridView in C# Windows application

Display auto number, serial number, row number in the data grid view is very simply; just you have to create one new column for the date grid, after created the new column make that column to read only. And enable Data Grid View VirtualMode property to True, and assign e.rowindex under CellValueNeeded events. see the […]

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