<< < 12 13 14 15 16 17 18 19 20 21 22 > >>   Sort: Date

Retrieving the Last Auto Increment ID in PHP
How To Get the Last ID Assigned by MySQL in PHP? If you use an ID column with AUTO_INCREMENT attribute, you can use the mysql_insert_id() function to get the last ID value assigned by the MySQL server, as shown in the sample script below: &lt;?php include "mysql_connection.php"; $sql = "INSERT I...
2016-10-17, 340👍, 0💬

Can Two HTML Forms Be Nested
Can Two Forms Be Nested? Can two forms be nested? The answer is no and yes: No. You can not nest two forms directly. XHTML schema does not allow that. Yes. You can nest two forms indirectly. See the tutorial example below. No. Two nested form do not work as two forms. Browsers will treat them as one...
2017-04-01, 339👍, 0💬

Getting Uploaded File Information in PHP
How To Get the Uploaded File Information in the Receiving Script in PHP? Once the Web server received the uploaded file, it will call the PHP script specified in the form action attribute to process them. This receiving PHP script can get the uploaded file information through the predefined array ca...
2016-10-17, 339👍, 0💬

HTML 'textarea' Element Attributes
What Are the Attributes of a "textarea" Element? There are several commonly used attributes for a "textarea" element: rows="n" - Required attribute. Used to specify the number of rows of the text input area. cols="n" - Required attribute. Used to specify the number of columns of the text input area....
2017-04-04, 338👍, 0💬

HTML Input Field 'label' Tag/Element
What Is a "label" Tag/Element? A "label" element is an inline element that you can use to define a label for a form input field. Here are basic rules about a "label" element: "label" elements are inline elements. "label" elements can only be used as sub-elements of "form" elements. A "label" element...
2017-04-01, 338👍, 0💬

Firefox Storing Persistent Cookies in PHP
Where Does File Firefox Store Persistent Cookies in PHP? If you change Firefox to keep cookies "until they expire", Firefox will store persistent cookies from all Web servers in a single file at: \Documents and Settings\$user\Application Data\Mozilla \Firefox\Profiles\xby7vgys.def ault\cookie.txt.Op...
2016-10-30, 338👍, 0💬

Processing Uploaded Files in PHP
How To Process Uploaded Files in PHP? How to process the uploaded files? The answer is really depending on your application. For example: You can attached the outgoing emails, if the uploaded files are email attachments. You can move them to user's Web page directory, if the uploaded files are user'...
2016-10-17, 337👍, 0💬

Generating Character from ASCII Value in PHP
How To Generate a Character from an ASCII Value? If you want to generate characters from ASCII values, you can use the chr() function. chr() takes the ASCII value in decimal format and returns the character represented by the ASCII value. chr() complements ord(). Here is a PHP script on how to use c...
2016-10-13, 337👍, 0💬

Replacing a Substring in PHP
How To Replace a Substring in a Given String? If you know the position of a substring in a given string, you can replace that substring by another string by using the substr_replace() function. Here is a PHP script on how to use substr_replace(): &lt;?php $string = "Warning: System will shutdown...
2016-10-13, 337👍, 0💬

'context.Request.Url.Query' Query String Parameters
How to access Query String parameters from "context.Request.Url.Query" object in Azure API Policy? Query String parameters are parameters provided in the query string in the form of name=value&amp;name=value. ..format. For example, the following URL has two query string parameters: "date" and "s...
2018-02-14, 336👍, 0💬

Console App with VC# Code in Visual Studio 2017
How to build a console application with Visual C# code in Visual Studio 2017? If you want to build a console application with Visual C# code in Visual Studio 2017, you can follow this tutorial 1. Start Visual Studio 2017 with .NET development environment. 2. Click "File &gt; New &gt; Project...
2017-08-08, 336👍, 0💬

Interview Questions - HTML Syntax
Where to find Interview Questions on HTML Syntax? Here are some interview questions on HTML syntax: What is the root element of an HTML document? &lt;root&gt; &lt;xml&gt; &lt;html&gt; &lt;xhtml&gt; What is HTML tag? What is HTML element? What is HTML attribute? How to...
2017-03-07, 336👍, 0💬

What Is an Array in PHP
What Is an Array in PHP? An array in PHP is really an ordered map of pairs of keys and values. Comparing with Perl, an array in PHP is not like a normal array in Perl. An array in PHP is like an associate array in Perl. But an array in PHP can work like a normal array in Perl. Comparing with Java, a...
2016-10-15, 336👍, 0💬

json_decode() - JSON Object to PHP Object
How to access properties from the PHP object returned from json_decode() on a JSON object? By default, json_decode() will convert a JSON Object to a PHP object of the default class "stdClass". There are different ways to access properties in the output PHP object: $obj-&gt;property_name - Return...
2018-03-04, 335👍, 0💬

HTML Elements with EMPTY Contents
What Are the HTML Elements Defined with EMPTY Contents? The following HTML elements are defined to use the EMPTY content model: &lt;meta ... /&gt; - Element to provide meta data to the document. &lt;link ... /&gt; - Element to provide a link to a CSS file. &lt;br/&gt; - Eleme...
2017-07-30, 335👍, 0💬

HTML Author 'meta' Tag/Element
What Is the HTML Author "meta" Tag/Element? The author "meta" element is a special "meta" element that provides information about the author of the HTML document. The author "meta" element must include the "name" attribute as, name="author". Here is an example: &lt;meta name="author" content="FY...
2017-06-23, 335👍, 0💬

Floating an Image to the Right Side in HTML
How To Float an Image to the Right Side? If you want to float an image to the right side of the paragraph instead of inline within a text line, you have to use the CSS property "float" to do this. The "float" property takes two values: "float: left" - Specifies that the image to be floated to the le...
2017-03-27, 335👍, 0💬

Removing Values Saved in the Session in PHP
How To Remove Values Saved in the Current Session in PHP? If you want to remove values saved in the current session, you should use the unset() function on those saved values in $_SESSION, or use array() to empty $_SESSION: unset($_SESSION['MyColor']) - Removes one value named MyColor in the current...
2016-10-24, 335👍, 0💬

HTML 'map' Tag/Element
What Is a "map" Tag/Element? A "map" element is special inline element that you to define map entries to be used by image maps. Here are some basic rules on "map" elements: "map" elements are inline elements. "map" elements can not have text contents. "map" elements should have "area" elements as su...
2017-03-22, 334👍, 0💬

The 'checked' Attribute of some HTML Elements
What Is Wrong with My "checked" Attribute Values? Attribute "checked" is an optional attribute for HTML element "input". In XHTML specification, attribute "checked" has only one predefined value: "checked". However, in HTML specification, attribute "checked" requires no value. If you are converting ...
2017-07-30, 333👍, 0💬

HTML Drop Down List 'select' Tag/Element
What Is a "select" Tag/Element? A "select" element is an inline element that you can use to define a dropdown input field in a form. Here are basic rules about a "select" element: "select" elements are inline elements. "select" elements can only be used as sub-elements of "form" elements. A "select"...
2017-04-01, 333👍, 0💬

Mapping XML Elements with Mixed Contents to JSON Values
What is the standard to map XML elements with mixed contents to JSON values? There seems to be no industry standard on how to map XML elements with mixed contents to JSON values. But there are some commonly used conventions: 1. Converting text content in an XML complex element to a JSON object prope...
2017-08-17, 332👍, 0💬

Retrieving Values out of an Array in PHP
How To Retrieve Values out of an Array in PHP? You can retrieve values out of arrays using the array element expression $array[$key]. Here is a PHP example script: &lt;?php $languages = array(); $languages["Zero"] = "PHP"; $languages["One"] = "Perl"; $languages["Two"] = "Java"; print("Array with...
2016-10-15, 332👍, 0💬

JSON Type Unique Identifications
How to assign a unique identification to a JSON type in JSON Schema? Using "definitions" and "$ref" properties allows to define JSON types and reference them internally in the same JSON schema or externally in another JSON schema. You can also assign a unique identification to a JSON type with the "...
2017-08-20, 331👍, 0💬

<< < 12 13 14 15 16 17 18 19 20 21 22 > >>   Sort: Date