Entries by

Why Are E-Books More Expensive Than Print Books?

I came across this site on Hackernews today and shared the link with my friends. Then I wondered if there was an e-book version, and yes, there was. But something caught my eye. When I checked the print version of this book, it was the same price as the e-book version!! This is complete nonsense! Sometimes e-books are more expensive than print books! It makes sense that e-books are cheaper than print books. I searched the internet and found this […]

How to Import SQL File with PHP

Sometimes, you might not be able to use PhpMyAdmin or any other database program and will have to use other options to import the SQL file into your database. Here, I'll explain how to import it into PHP using both the old mysql_query and the new mysqli_query. You can also find the code on my Github project. Here's what you need to do with both methods: Upload the SQL file and PHP file to the same location and run PHP […]

Finding All Weekdays of the Month with PHP

Hello everyone. Today, I needed to find all the weekdays of the month, including the current week. You can get the days you want using any code you write. It's very simple. You only need to know the DateTime class. I'm only collecting weekdays in an array. I'm not including weekends. After setting this $lastDay variable to Friday, I set the $lastDay variable to […]

PHP and JSON: A Practical Way to Share Data

To explain the relationship between PHP and JSON and how to use JSON in PHP, let's start by asking, "What is JSON?" I've worked with JSON extensively in my own projects, and discovering the power of this combination is truly exciting. In this article, I'll explain what JSON is, how it's used with PHP, and how it works with real-world examples. Let's get started! What is JSON? In programming, […]

Creating a CSV File Using PHP

PHP has defined functions for creating CSV files. Using these functions instead of libraries like PHPExcel has many advantages. They consume fewer resources and are faster. First, let's create a function to create our CSV file.

How to Create a Responsive Table?

Herkes sitelerinde tablo kullanıyor, ancak tablolar mobil cihazlarda çok kötü görünüyor. Tablonun genişliğini %100 olarak ayarlasanız bile, bir miktar küçülecek ve metinler çok küçük olacak. Hiç kullanışlı değil. Bu makalede size duyarlı tabloyu göstereceğim. HTML Kodları Basit örnek tablo kodları. <table> <thead> <tr> <th>First Name</th> <th>Last Name</th> <th>Job Title</th> </tr> </thead> <tbody> <tr> <td>James</td> <td>Matman</td> […]