Mark on PHP

I teach PHP and Web development to beginners.

Enjoy my easy to follow tutorials.

(Video) CSS Syntax and Tricks - Web Development Basics Part 7

This is the seventh part of the series Web Development Basics. In this video, I will explain the previous exercise and I will discuss CSS syntax a bit more.

At the end of the tutorial, you will know how to select multiple elements and apply them the same styling.

read more...

Autocomplete with PHP, JQuery and MySQL - Part 3

This series will show you how to create an auto-complete input field with PHP, JQuery/JavaScript and MySQL. This is the third and last part of this series.

  • In part 1, we coded the JavaScript that will capture our keystrokes in the input field and send it to a PHP page. We also hardcoded results from our PHP script to send back to our web page. Then, we displayed in the JavaScript console, the result sent back by the PHP.
  • In part 2, we coded the database part where we issue a search using the keywords sent by the user. We also removed the hardcoded part to send the results of the search from the database.
read more...

(Video) CSS Selectors - Web Development Basics Part 6

This is the sixth part of the series Web Development Basics. In this video, I will explain the previous exercise and I will discuss other CSS selectors.

At the end of the tutorial, you will know 2 other CSS selectors: the ID selector and the CLASS selector.

read more...

Autocomplete with PHP, JQuery and MySQL - Part 2

This series will show you how to create an auto-complete input field with PHP, JQuery/JavaScript and MySQL. This is the second part of 3.

In the part 1, we coded the JavaScript that will capture our keystrokes in the field and send it to a PHP page with AJAX. We also hardcoded results (from our PHP page) to send back to our web page. Then, we displayed, in the JavaScript console, the results sent back by the PHP.

Part 3 is also available.

read more...

(Video) CSS Basics - Web Development Basics Part 5

This is the fifth part of the series Web Development Basics. In this video, I will explain the previous exercise and I will discuss the basics of CSS.

At the end of the tutorial, you will know 3 ways on how you can include CSS declarations in an HTML page.

read more...

Object-oriented Programming With PHP for Beginners - Part 2

Introduction

In the first part of this tutorial about Object Oriented Programming with PHP, we defined what was the concept of an object.

You should also know that attributes of an object in OOP is similar to attributes of real life objects (like the color of our cars in the example of the first part).

And, that objects in OOP have methods, which are basically actions that they can execute. Much like our car could move, turn, honk, etc.

If you didn’t read it or if you read it last week, I suggest that you re-read part 1 before reading this part, just so that the concepts are fresh to your memory.

In this part, you will learn:

  • How to create a class with PHP code
  • How to add attributes and methods to that class
  • How to instantiate an object based on a class
  • How to change the value of the attributes of an object
read more...

(Video) How to Create Images with HTML - Web Development Basics Part 4

This is the fourth part of the series Web Development Basics. In this video, I will come back on the previous video tutorial (How to create links with HTML), explain the exercise and I will talk about how to display an image on a web page with the <img> tag.

At the end of the tutorial, you will be able to display images in a web page.

read more...

Autocomplete with PHP, JQuery and MySQL - Part 1

This is the first part of a series of tutorials that will show you how to code a simple autocomplete input field with PHP, JavaScript (JQuery) and MySQL.

Part 2 and Part 3 are also available.

In this first part, you will:

  • Create the base of the JavaScript (with JQuery and Ajax) part
  • Create the necessary HTML part
  • Create the basics of the PHP code that will answer the Ajax request

At the end of this first part, we will have an input field (on our web page) that we’ll be able to type in. Each character entered in the field will issue a request to our PHP code and display the answer in the debugging JavaScript console.

read more...

(Video) How to Create Links with HTML - Web Development Basics Part 3

This is the third part of the series Web Development Basics. In this video, I will come back on the previous video tutorial (the basics of HTML), explain the exercise and I will talk about how to create 2 kinds of links:

  • Relative links
  • Absolute links

Also, at the end of the tutorial, you will know what is the difference between using the . (dot) and .. (double dot) in a link.

read more...

Object-oriented Programming With PHP for Beginners - Part 1

Yes, object-oriented programming can be confusing at first. There’s a new syntax to learn AND a new concept which is a bit abstract. While learning the PHP syntax is easy, really understanding OOP, its benefits and using it correctly is another story.

In this first part, you will learn the concepts:

  • What is an object in OOP
  • What are attributes
  • What are methods
  • What is a `class

Don’t worry, in the next part, we’ll see real code example!

read more...

About Mark on PHP.com

I created this website to teach PHP to beginners and (to some extent) web development in general. The goal of this site is to present information in a way that is easy to understand for starters, even for the most complicated subject.

Contact

Do you have a question about this website or PHP in general?

Don’t hesitate to ask me any question about Web development or share any idea about this Website. I’ll reply as soon as possible!

You can reach me easily on twitter: @markonphp

Or use the contact form to send me an email.