Php classes
Publié le 22 Janvier 2019 à 09h01 - 948 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. 23 Nov. 2020High performing Php programmers for hire10 clics
  2. 21 Sept. 2020High standard magneto developers to hire72 clics
  3. 26 Juil. 2020Hiring from a Php company with drive and expertise169 clics
  4. 25 Mai 2020SimplyPhp has the developers needed for any project219 clics
  5. 29 Janv. 2020Why SimplyPhp is a reliable agency to work with396 clics
  6. 21 Nov. 2019SimplyPhp web development for your project480 clics
  7. 12 Sept. 2019Php website development with Simplyphp476 clics
  8. 12 Août 2019Which solutions Simplyphp has to offer :493 clics
  9. 13 Fév. 2019Welcome to the world of Magneto !739 clics
  10. 16 Déc. 2018What you must know tbefore becoming a magneto developer737 clics
  11. 21 Nov. 2018Join a threiving company thats has an expertise of Php691 clics
  12. 10 Oct. 2018Become an expert on Php frameworks839 clics
  13. 26 Sept. 2018More info on offshore reseller hosting1118 clics