Prabhas has Published 78 Articles

Add space inside a form’s text field with CSS

Prabhas

Prabhas

Updated on 23-Jun-2020 15:26:31

9K+ Views

To add space inside a form’s text field, use the CSS padding property.You can try to run the following code to achieve this:ExampleLive Demo                    input[type = text] {             width: 100%;             padding: 10px 15px;             margin: 5px 0;             box-sizing: border-box;          }                     Fill the below form,                Subject                    Student                    

How can we fetch all the data from MySQL table by using mysql_fetch_array() function, returning an array with the numeric index, in PHP script?

Prabhas

Prabhas

Updated on 22-Jun-2020 13:39:30

517 Views

The function mysql_fetch_array() will return an array with the numeric index if we use the constant MYSQL_NUM as the second argument to it. To illustrate it we are having the following example −ExampleIn this example, we are fetching all the records from a table named ‘Tutorials_tbl’ with the help of ... Read More

How can we get the total number of rows affected by MySQL query?

Prabhas

Prabhas

Updated on 22-Jun-2020 13:27:10

3K+ Views

MySQL ROW_COUNT() can be used to get the total number of rows affected by MySQL query. To illustrate it we are creating a procedure with the help of which we can insert records in a table and it will show us how many rows have been affected.Examplemysql> Delimiter // mysql> ... Read More

Managed code vs Unmanaged code in C#

Prabhas

Prabhas

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

3K+ Views

Unmanaged CodeApplications that are not under the control of the CLR are unmanagedThe unsafe code or the unmanaged code is a code block that uses a pointer variable.The unsafe modifier allows pointer usage in unmanaged code.Let us see the example −Examplestatic unsafe void Main(string[] args) {    int var = ... Read More

How can we discard a MySQL statement in the middle of its processing?

Prabhas

Prabhas

Updated on 22-Jun-2020 11:51:28

45 Views

With the help of \c command, we can discard a MySQL statement in the middle of its processing. Consider the following example in which in the middle of the statement we want to discard it then we use \c option for it −mysql> Select *    -> from\c mysql>The above ... Read More

In MySQL, how it can be possible to specify a sort order using a column that is not retrieved by the query?

Prabhas

Prabhas

Updated on 22-Jun-2020 11:02:44

48 Views

Actually, as we know that we can specify a sort order with the help of the ORDER BY clause. We need to write the ORDER BY keyword followed by the name of the column on which we want to sort the table. It is not necessary that we have to ... Read More

CSS overflow-y

Prabhas

Prabhas

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

153 Views

The CSS overflow-y allows you to decide what to do with the top bottom edges of the content. You can try to run the following code to implement the overflow-y property −ExampleLive Demo                    div {         ... Read More

How can I get the information about a particular column of a table by MySQL EXPLAIN statement?EXPLAIN statement?

Prabhas

Prabhas

Updated on 22-Jun-2020 08:33:44

62 Views

As we know the EXPLAIN statement will provide the information/structure of the whole table. With the help of the EXPLAIN statement along with the table name and the column name, we can get the information about that column.SyntaxEXPLAIN table_name col_name;Example1mysql> EXPLAIN employee ID; +-------+---------+------+-----+---------+----------------+ | Field | Type    | ... Read More

How can we alter a MySQL stored procedure?

Prabhas

Prabhas

Updated on 22-Jun-2020 06:54:46

580 Views

If we have ALTER ROUTINE privileges for the procedure then with the help of ALTER PROCEDURE statement we can alter a MySQL stored procedure. To demonstrate it we are taking an example of a stored procedure named ‘delete_studentinfo’ which have the following create a statement −mysql> SHOW CREATE PROCEDURE Delete_studentinfo\G *************************** ... Read More

How can I create a stored procedure to update values in a MySQL table?

Prabhas

Prabhas

Updated on 22-Jun-2020 05:37:02

7K+ Views

We can create a stored procedure with IN operator to update values in a MySQL table. To make it understand we are taking an example of a table named ‘student_info’ having the following data −mysql> Select * from student_info; +------+---------+------------+------------+ | id   | Name    | Address    | ... Read More

Advertisements