Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building a Web Application with PHP and MariaDB: A Reference Guide
  • Table Of Contents Toc
Building a Web Application with PHP and MariaDB: A Reference Guide

Building a Web Application with PHP and MariaDB: A Reference Guide

By : Sai S Sriparasa
4.3 (3)
close
close
Building a Web Application with PHP and MariaDB: A Reference Guide

Building a Web Application with PHP and MariaDB: A Reference Guide

4.3 (3)
By: Sai S Sriparasa

Overview of this book

This is a step-by-step, tutorial guide designed to help readers transition from beginners to more experienced developers using clear explanations. The variety of examples will help readers build, secure, and host real-time web applications. If you are a developer who wants to use PHP and MariaDB to build web applications, this book is ideal for you. Beginners can use this book to start with the basics and learn how to build and host web applications. Seasoned PHP Developers can use this book to get familiar with the new features of PHP 5.4 and 5.5, unit testing, caching, security, and performance optimization.
Table of Contents (12 chapters)
close
close
11
Index

Number datatypes

Let us now look at the following main number datatypes:

Datatype

Explanation

Comments

tinyint

This stores integer values.

-128 to 127, Signed

0 to 255, Unsigned

Smallint

This stores integer values.

-32768 to 32767, Signed

0 to 65535, Unsigned

Mediumint

This stores integer values.

-8388608 to 8388607, Signed

0 – 16777215, Unsigned

int(l)

This stores integer values and takes the size of the number.

-2147483648 to 2147483647, Signed

0 – 4294967295, Unsigned

Bigint

This stores integer values.

-9223372036854775808 to 9223372036854775807, Signed

0 to 18446744073709551615, Unsigned

Float(l,d)

This stores floating point numbers and allows us to define the display length (l) and the number of digits after the decimal point (d). The default values for l, d are 10 and 2, respectively.

This uses 4-byte single precision and can display from 0 to 23 digits after the decimal.

Double(l,d)

This is similar to FLOAT, and uses 8-byte double precision. The default values for l, d are 16 and 4, respectively.

The DOUBLE datatype can display from 24 to 53 results. Both the FLOAT and DOUBLE datatypes are commonly used for storing the results from scientific calculations.

decimal(l,d)

This stores the exact numeric data values and allows us to define the display length (l) and the number of digits after decimal point (d).

This is used for precision mathematics that deals with extremely accurate results. The DECIMAL datatype is commonly used to store monetary data.

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building a Web Application with PHP and MariaDB: A Reference Guide
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon