aravindtrue.wordpress.com
PHP Classes & Functions | noviceLib
https://aravindtrue.wordpress.com/php/php-classes-functions
PHP Conditionals and Loops. PHP Array and Strings. PHP Classes and Functions. PHP Classes & Functions. Class is an instance of an object. Every class begins with the keyword class followed by the class name. The class name can be any name that isn’t a reserved word in PHP. Th class contains the definition of the class members and methods. Output = myBlog: php($php version);? Anyone inside the class or outside can access them (i.e.) it can be accessed everywhere. Only the specified class and its subclass&...
aravindtrue.wordpress.com
MySQL SELECT | noviceLib
https://aravindtrue.wordpress.com/mysql/mysql-select
PHP Conditionals and Loops. PHP Array and Strings. PHP Classes and Functions. As I mentioned first,. I’ll show how to select the records from the tabel,. SELECT name FROM table name;. Now, i’ll show you how to retrieve and display in php,. Php / SELECT * FROM table name / SELECT name FROM table name WHERE table id = '1'; / SELECT gender, age FROM table name WHERE name = 'PersonX';. Sql = mysql query("SELECT name FROM table name"); echo $count = mysql num rows($sql);. Print count of records. CSS3: Polaroi...
aravindtrue.wordpress.com
PHP | noviceLib
https://aravindtrue.wordpress.com/php
PHP Conditionals and Loops. PHP Array and Strings. PHP Classes and Functions. Stands for Hypertext PreProcessor. PHP is a general purpose scripting language, especially suited for web development and can be embedded into HTML. DOCTYPE HTML PUBLIC -/ W3C/ DTD HTML 4.01 Transitional/ EN. Http:/ www.w3.org/TR/html4/loose.dtd. Echo Hello World;. What can PHP do. PHP is mainly focused on server-side scripting, there are three main areas where PHP scripts are used,. PHP and Other Languages. PHP vs. ASP. Perl (...
aravindtrue.wordpress.com
MySQL Connect | noviceLib
https://aravindtrue.wordpress.com/mysql/mysql-connect
PHP Conditionals and Loops. PHP Array and Strings. PHP Classes and Functions. Before accessing the data in a database, you must open a connection to the database. In php, this is done by mysql connect(). Con = mysql connect('host', 'username', 'password') or die(mysql error() ;. When using in localhost. Con = mysql connect('localhost', 'root', ' ) or die(mysql error() ;. To select a particular database. Mysql select db("db name",$con) or die(mysql error() ;. Excellent.Nice article thanks for sharing.
aravindtrue.wordpress.com
PHP Conditionals & Loops | noviceLib
https://aravindtrue.wordpress.com/php/php-conditionals-loops
PHP Conditionals and Loops. PHP Array and Strings. PHP Classes and Functions. PHP Conditionals & Loops. Echo "a is bigger than b.";. Else if($a = $b). Echo "a is equal to b";. Echo "a is smaller than b";. My blog = array(php,js,mysql,ajax);. For($i=0;$i count($my blog);$i ). Echo $my blog[$i];. Printing array using a for loop. My blog = array(one= php, two= js, three= mysql, four= ajax);. Foreach($my blog as $key= $value). Echo $key." is key.";. Echo " br ";. Echo $value." Is value";. Echo " br br ";.
aravindtrue.wordpress.com
PHP Syntax | noviceLib
https://aravindtrue.wordpress.com/php/syntax
PHP Conditionals and Loops. PHP Array and Strings. PHP Classes and Functions. A PHP scripting block always starts with? A PHP scripting block can be placed anywhere in the document. Php echo "Blog";? If the server is shorthand support enabled, the above PHP tag can also be wriiten as,. Is used to print a variable. The only difference between echo and print is, echo has multiple expressions but print cannot take multiple expression. print r(). Is used to print the array. It takes multiple parameters.
aravindtrue.wordpress.com
MySQL JOIN | noviceLib
https://aravindtrue.wordpress.com/mysql/mysql-join
PHP Conditionals and Loops. PHP Array and Strings. PHP Classes and Functions. MySQL supports JOIN syntaxes for the part of SELECTstatements and multiple table UPDATE and DELETE statements. JOIN clause helps us, when we manipulate with more than one table. Generally most of the beginners quite confused, while starting with the JOIN clause. But this part explains you in a simple and clear way. SELECT a.emp master id, a.emp name, a.emp status, b.emp slave id, b.emp city FROM emp master a...Or) SELECT a....
aravindtrue.wordpress.com
MySQL | noviceLib
https://aravindtrue.wordpress.com/mysql
PHP Conditionals and Loops. PHP Array and Strings. PHP Classes and Functions. MySql is Relational Database Management System (RDBMS). Mysql is popular for Web Applicationsand act as a database component of LAMP, XAMPP, WAMP etc. Its popularity for use with web application is closely tied to the popularity of PHP, which is often combined with MySql. Several high traffic websites such as YouTube, Facebook, Google, Flickr uses MySql for its data storage and logging of user data. Leave a Reply Cancel reply.
aravindtrue.wordpress.com
PHP Regular Expressions | noviceLib
https://aravindtrue.wordpress.com/php/php-regular-expressions
PHP Conditionals and Loops. PHP Array and Strings. PHP Classes and Functions. There are two types of regular expressions they are,. The ereg, eregi replace,ereg replace,… are the POSIX versions and preg match, preg replace,…. are the perl versions. It is important that, while using perl compatible regular expressions, the expressions should be enclosed in the delimiters, a forward slash (/). The regular expressions basic syntax. Normal characters which match themselves like hello. Grouping with {},(),[].