There is a few ways to do this. The easiest way to do this is in fact really simple, you just need to add a keyword “selected” to the option that you want selected. Method 1 : Simple html select tag to display option as selected in html. You just need to add an attribute “selected” to the option that you want to be ... Read More
Insert query is used to insert a record into table using mysql, mysqli and pdo. These are basically APIs of PHP that is used to access the MySQL databases and tables. Using these queries you can create, read, update and delete (CRUD) records of a table in the database. But in this article we learn how to insert a record into table using mysql query with all ... Read More
This is one of the common issue found when we try to add two number in javascript. Before we understand about the issue why it happens first we should know the javascript variable types where the value actually stored. JavaScriptis aloosely typed language, means you don't have to specify what type of information will be stored in a ... Read More
PHP Function to display number in k (Killo) , m (millions), B (Billions) and T(Trillion). // Defining function function thousandsCurrencyFormat($num) { if( $num > 1000 ) { $x = round($num); $x_number_format = number_format($x); $x_array = explode(',', $x_number_format); $x_parts = array('k', 'm', 'b', 't... Read More
HTML canvas element is used to draw 2D shapes using Javascript. It can also be converted to an image (png, jpeg, etc.) and can be embedded in the HTML page using <img> tag. We use html canvas element and javascript to convert canvas to image (png, jpg) . There are the ... Read More
We use cookies to ensure that we give you the best experience on our website.