PHP Count in MySQL Results

January 26, 2012

When developers create websites using the PHP language and a MySQL database, they can carry out various types of data query. Sometimes a developer will need to determine the number of database table rows resulting from a query, so that they can structure these results within HTML markup. This task can be achieved using both SQL and PHP functions. Both options require only a few lines of code.

Read the full article →

PHP Vs. Perl Performance

January 26, 2012

Computer programmers use a variety of programming languages when designing Web pages. No one programming language is "better in terms of comparison, and each has its strengths and weaknesses, although certain languages are better suited for particular tasks on the Web. When comparing PHP and Perl, it’s important to realize that both have an role in the architecture of Web pages, and one language may offer some advantages over the other, depending on what you want to achieve.

Read the full article →

CGI Perl Vs. PHP

January 26, 2012

Perl and PHP are two of the "three P’s" that complete the Linux, Apache, MySQL or “LAMP” Web server software stack. While both Perl and PHP are general purpose programming languages, they also make good Common Gateway Interface or CGI scripting languages. CGI is a World Wide Web standard that specifies the interaction between Web servers and the Perl or PHP applications that send or receive information through them. Blogging platforms, social networking sites, Web email, online dating services and Internet-based courses are some of the Web applications created using Perl or PHP CGI scripts.

Read the full article →

Linux, Apache, MySQL & PHP for Beginners

January 26, 2012

Although the amount of jargon and the sheer volume of code used in many applications can make the world of computer programming seem daunting, most coding technologies and languages are actually quite straightforward. Even for beginners, once users have a solid grasp of the underlying logic and structure of each language or technology, they should find that inputting commands and beginning to program is rather simple and intuitive. First, however, beginners should be familiar with what each language or technology is and does. Apache, MySQL, Linux and PHP, for instance, are terms and technologies about which every beginner should know some basic information.

Read the full article →

PHP Parse Options

January 26, 2012

In computer programming, "parsing" means to analyze data, specifically a string of text, for tokens to determine its structure and purpose. PHP has several parsing functions that let you analyze different kinds of strings, such as sentences, dates and URLs. You use these functions to break up the data into an array of its different parts.

Read the full article →

Parse Error in PHP

January 26, 2012

When developers write programming scripts in any language, the likelihood of errors can be high. The PHP scripting language is no exception. Developers use PHP code to build websites and Web applications. Often, PHP scripts contain code in other languages, such as HTML markup for defining webpages and SQL for managing databases. When a PHP site contains an error in the syntax, the webpage may display a message indicating that a parse error has been detected.

Read the full article →

A PHP Array Sort Problem With the Number Zero

January 26, 2012

PHP will generally act as expected when sorting values including numeric zero, sorting it as less than one and greater than any negative number. The most common sources of error when dealing with zero values stem from how they are used in arrays, or confusing a numeric zero value with the text "0" value.

Read the full article →

PHP References Vs. Object Handles

January 26, 2012

When you create a function and pass parameters to it in PHP: Hypertext Preprocessor, you must understand the scope of the parameters. PHP forces you to specifically declare when to allow a function to modify the global value of a parameter. In PHP version 5, the object model affects how objects are treated when passed as parameters to functions. While the model conforms to the overall PHP standard, it provides a function that allows you to manipulate the global values of object members without specifically declaring this in the function definition.

Read the full article →

Results of Inserting MySQL PHP in Echo

January 26, 2012

Developers build websites and applications using PHP and MySQL, with data stored in MySQL and PHP scripts handling queries and updates. A PHP script can execute an insert statement, through which a new record is added to a database table. The PHP language provides standard functions for managing MySQL databases, through which scripts can carry out data inserts. Once an insert is complete, the developer may need to confirm its success or failure.

Read the full article →

Building a Storefront With PHP MySQL

January 26, 2012

Web developers often use the MySQL database system and the PHP server-side scripting language to build commercial websites. By modeling the data for a store in MySQL, connecting to it in PHP and building a Web interface using HTML, developers can effectively create an Internet storefront. The final application involves a range of elements working in conjunction with one another, enabling customers able to purchase products through the website.

Read the full article →