Php classes
Publié le 22 Janvier 2019 à 09h01 - 825 clics

Examples where PHP and MySQL can be used

All words in our glossary will also need to be saved somewhere, so we will opt for a MySQL database. The choice of the database is completely arbitrary. We could very well have used a different information system such as a text file or XML. The database has the main advantage of being more convenient to handle.

We can choose some projects

Dynamic replacements of acronyms and abbreviations

The application that we are going to develop must allow transforming an acronym into a specific HTML element in which its definition will be found so easily. The first makes it possible to apply a meaning on an acronym the second on an abbreviation and the last to affix a definition on a word or a set of words. The difference between acronym and abbreviation is minimal, so they are often confused. In fact, what separates an acronym from an abbreviation is the way that the acronym is pronounced. If the acronym can be pronounced naturally as an ordinary word, then we will speak rather of acronym. However, if the pronunciation of the acronym requires spelling each letter individually, then we speak of abbreviation.

The overall algorithm of this php programmer is very simple. It is broken down into four parts, as follows.

Connection to the database, Instantiation of an object of type Glossary, Retrieving Glossary words from the database and saving to the Glossary object and the last is transforming words into the HTML string.

The rotation of advertising banners with random display

A banner is displayed after being drawn at random randomly from the others registered. The principle is extremely simple. In order to make the understanding and the easy reading of this tutorial, we will follow the method presented by the following plan.

Data structures needed, Determination of the key drawn, Display of the selected banner, The final script and the Conclusion.

The goal of the php Start exercises is to teach you how to master the basics. And each requirement will be solved in a better way.

Les publications similaires de "Web news"

  1. 26 Juil. 2020Hiring from a Php company with drive and expertise84 clics
  2. 25 Mai 2020SimplyPhp has the developers needed for any project138 clics
  3. 29 Janv. 2020Why SimplyPhp is a reliable agency to work with295 clics
  4. 21 Nov. 2019SimplyPhp web development for your project407 clics
  5. 12 Sept. 2019Php website development with Simplyphp388 clics
  6. 12 Août 2019Which solutions Simplyphp has to offer :415 clics
  7. 13 Fév. 2019Welcome to the world of Magneto !647 clics
  8. 16 Déc. 2018What you must know tbefore becoming a magneto developer655 clics
  9. 21 Nov. 2018Join a threiving company thats has an expertise of Php628 clics
  10. 10 Oct. 2018Become an expert on Php frameworks786 clics
  11. 26 Sept. 2018More info on offshore reseller hosting1008 clics
  12. 27 Août 2018What are the benefits of offshore hosting for your company ?1300 clics
  13. 28 Juil. 2018Koddos offers top security solutions848 clics