How to Import CSV File Data into MySQL Database using PHP


A CSV file stores the tabular data in plain text format. Each line of the CSV file is a data record that consists of one or more fields. Using CSV file you can store all the data and import the CSV file data into the database at once using PHP and MySQL. Import CSV into MySQL helps to save the user time and avoid repetitive work. Here we'll build an example script to import members data into the database.

Creating a Simple Contact Form with PHP


The Contact Form is an essential element for almost every website. The thought of a contact form is very simple, the user is able to send their query via email to the respective organization. This tutorial will show you how to create a simple contact form with PHP and integrate it into your website. Using our PHP contact form script you'll be able to add a contact us form to your website within 5 minutes.

Some PHP Hacks Every Programmer Should Know


A lot of things are there which you should follow when working with PHP. In this article, we'll discuss some important PHP hacks among them which every programmer should know about. These PHP tips will help you to write a more structured PHP script in less time. You should always use the mentioned PHP hacks while coding in PHP.

How to Create Time Range Array in PHP


If you want to provide a time picker dropdown for selecting time, then there are many options to do that. You can use jQuery plugins to provide a time picker to the user or generate a custom time picker dropdown with PHP. If you are concern about the web page load time, then it will be better to use custom time range dropdown for selecting time. Using PHP you can easily create a time range array that helps you to generate time picker drop-down HTML.

Simple PHP Shopping Cart using Sessions


A shopping cart is an important part of every eCommerce project. It helps the user to select multiple items for purchase and view total price before submitting the order. If you want to build a simple PHP shopping cart from scratch, this step-by-step tutorial will help you a lot. In this tutorial, we'll provide the complete guide and script to creating a simple shopping cart in PHP using sessions and MySQL.

Add Subscriber to List using MailChimp API and PHP


MailChimp is an email marketing service, helps to manage the subscribers of your website. MailChimp provides an easy way to integrate email signup form in your website and send the email newsletter to the subscriber. In this tutorial, we'll show you how to integrate newsletter subscription form in your website and add subscriber to list with MailChimp using MailChimp API and PHP.

How to Extract All URLs from a Web Page using PHP


Extract URLs from the website is used in many cases, generating a sitemap from website URL is one of them. You can easily get all URLs from a web page using PHP. Here we'll provide short and simple code snippets to extract all URLs from a web page in PHP using DOMDocument class.

Convert String to Sentence Case in PHP


In sentence case, the first character of an English sentence is capitalised and subsequent characters are lowercased, except for proper nouns and other words which are generally capitalised by a more specific rule. Converting string to sentence case is used in some cases in the web project. For example, you'll display the string and text in the web page which had taken from the user, and you are not sure whether the text content case is properly formatted or not. On that case, you need to convert text to sentence case before displaying in the web page.

Server Side Filtering using jQuery Ajax PHP and MySQL


Filtering helps the user to sort the recordset in the data list. Using the search and filter feature user can find the relevant data from the huge number of records list. In the web application, sorting or filtering is very useful where many data is listed. In this tutorial, we'll show you how to implement server side filtering feature on data list using jQuery, Ajax, PHP, and MySQL. Our example script provides a search and filter option on records list.

CodexWorld Newsletter

Subscribe CodexWorld updates via email and get every new post delivered to your inbox.