Category: PHP

  • Google Maps Geocoding Example with PHP

    [adinserter block=”34″] Today’s code is a Google Maps geocoding example with PHP and we also use some Google Maps JavaScript to show the geo-coded data on the map. You can use this code if you want to create a store locator. Why this is useful? Imagine if you have several addresses on your database, you…

  • PHP Object-oriented (OOP) CRUD Tutorial – Step By Step Guide!

    Previously, we learned the basics from our PHP CRUD Tutorial for Beginners. Today we welcome you to our PHP OOP CRUD Tutorial, a comprehensive guide on mastering PHP Object-Oriented Programming (OOP) for database management. This tutorial will cover everything you need to know to create, read, update, delete, and search records in a MySQL database…

  • Generating JSON String with PHP

    Today I’m going to share this code I used to generate a JSON string with data from MySQL database. For those not yet familiar, JSON is a lightweight data interchange format (like XML but it is lightweight). It has been used by companies like Google and Facebook in their APIs. Recently, I needed a JSON string…

  • Email Activation Code in PHP

    [adinserter block=”34″]Email activation or verification is one requirement when you’re building an app with a membership feature. Our Email Activation Code in PHP will help you with that! This is one way to detect if there’s really a person behind the submitted email address. An email address is considered invalid if no person was able…

  • Apache .htaccess RewriteRule Examples with PHP for Clean URLs

    [adinserter block=”34″] Our code for today will make your website URLs clean and attractive. Clean URLs are user and SEO friendly, it does not contain any query string like: …page.php?param1=something&id=1111 Thus, giving our users and search engines (like Google) an idea what your link is all about once it was shared to social media or…

  • PHP Shopping Cart Tutorial using Sessions

    This post is about PHP Shopping Cart Tutorial using SESSIONS. Previously, we learned how to build a Shopping Cart with PHP & MySQL where we used a MySQL database to store products added to the cart. This time, we will use PHP session variables to store products added to the cart. Final output PHP Shopping…

  • How To Salt, Hash and Store Passwords Securely?

    What is password hashing? It turns a string (of any length) to a fixed length “fingerprint” that cannot be reversed. For example, my password is “i1love2coding3″, when hashed, it can be converted to a 60 character “ytwqwxpbx1oxbfvmpoaafckmat2zkdsjaxs…” which will be stored to the database. RELATED: PHP Login Script with Session Tutorial – Step by Step…

  • PHP Login System Tutorial – Step By Step Guide!

    Previously, we learned how to create, read, update and delete database records on our PHP OOP CRUD tutorial. Today we will build a secure and efficient PHP login system with admin features. By utilizing PHP sessions and MySQL database, we will walk you through creating a user-friendly login system that ensures the safety and protection…

  • How To Create Dynamic Pie Chart in PHP or JavaScript with MySQL?

    [adinserter block=”34″] Graphical or visual representation of data is usually a requirement for a software, mostly, business apps. Today I’m going to show you the two and free ways to generate dynamic Pie Charts for your web applications. We say “dynamic” because the data that will be shown in the pie chart were pulled from…

  • Append Subtitle/Caption Image Using PHP and Hide It with CSS

    Note: People say it isn’t actually a watermark, the image appended can be called a “Caption” or “Hidden Subtitle”. So in this post, when I say “watermark”, it refers to the ”Caption” or “Hidden Subtitle”.Nowadays I see many websites with image contents. Funny images, interesting images, cosplay, art and many more kinds of images. Many…