Varma has Published 54 Articles

How to write PHP script to fetch data, based on some conditions, from MySQL table?

varma

varma

Updated on 22-Jun-2020 14:02:39

803 Views

If we want to fetch conditional data from MySQL table then we can write WHERE clause in SQL statement and use it with a PHP script. While writing the PHP script we can use PHP function mysql_query(). This function is used to execute the SQL command and later another PHP ... Read More

Matching strings with a wildcard in C#

varma

varma

Updated on 22-Jun-2020 13:15:59

5K+ Views

Commonly used wildcard characters are the asterisk (*). It represents zero or more characters in a string of characters.In the following example asterisk is used to match words that begins with m and ends with e −@”\bt\S*s\b”The following is the complete code −Example Live Demousing System; using System.Text.RegularExpressions; namespace Demo ... Read More

Main thread vs child thread in C#

varma

varma

Updated on 22-Jun-2020 12:00:04

953 Views

Main ThreadThe first thread to be executed in a process is called the main thread. When a C# program starts execution, the main thread is automatically created.Child ThreadThe threads created using the Thread class are called the child threads of the main thread.Here is an example showing how to create ... Read More

How can MySQL produce the output in a vertical format rather than tabular format?

varma

varma

Updated on 22-Jun-2020 11:09:33

576 Views

By using \G at the end of MySQL statement, it returns the output in a vertical format rather than a tabular format. Consider the example below −mysql> Select curdate(); +------------+ | curdate()  | +------------+ | 2017-11-06 | +------------+ 1 row in set (0.00 sec) mysql> Select CURDATE()\G *************************** 1. ... Read More

Align elements using the CSS float property

varma

varma

Updated on 22-Jun-2020 10:34:45

212 Views

To align elements using the float property in CSS, you can try to run the following code −ExampleLive Demo                    .demo {             float: right;             width: 200px;             border: 1px dashed blue;             padding: 5px;          }                     Heading                This is demo text and right aligned.           Output

How MySQL IF ELSE statement can be used in a stored procedure?

varma

varma

Updated on 22-Jun-2020 05:46:44

17K+ Views

MySQL IF ELSE statement implements a basic conditional construct when the expression evaluates to false. Its syntax is as follows −IF expression THEN    statements; ELSE    else-statements; END IF;The statements must end with a semicolon.To demonstrate the use of IF ELSE statement within MySQL stored procedure, we are creating the following ... Read More

How to check table status of the tables in a particular MySQL database?

varma

varma

Updated on 22-Jun-2020 04:56:12

469 Views

We can check the status of tables in a database with the help of show table status statement. For example, in the database named tutorial, by executing this statement we can get the status of tables as follows −mysql> show table status \G*************************** 1. row ***************************         ... Read More

Change the height of element using CSS

varma

varma

Updated on 21-Jun-2020 05:05:59

158 Views

Use the scaleY() method to change the height of the element with CSS.Let us see the syntax −scaleY(n);Here, n is a number representing the scaling factor.Let us see an example −div {    width: 40px;    height: 50px;    background-color: black; } .myScaled {    transform: scaleY(0.9);    background-color: orange; }

How can we take a backup of the single database by using mysqldump client program?

varma

varma

Updated on 20-Jun-2020 10:41:02

205 Views

By using mysqldump client program we can take the backup of a database into a file having the extension ‘.sql’. it can be understood with the help of following example −ExampleIn this example, with the help of mysqldump client program, we are taking the backup of a database named ‘tutorials’ ... Read More

CSS2 sizing property vs CSS3 box sizing property

varma

varma

Updated on 20-Jun-2020 08:40:10

340 Views

Let us understand the difference between CSS2 sizing property and CSS3 box-sizing property.CSS2 sizing propertyLive Demo                    .div1 {             width: 200px;             height: 100px;             ... Read More

Advertisements