Posts

Adding a new row in a textfile using PHP

Image
   How to append a new row in a text file using PHP        Manipulating text files is a common task when we are storing data in text files.   This tutorial shows how to add or append a new line to an existing text file.  There is a text file name: states.txt. In this file, each row is delimited with a semicolon. There is another form.html file, take data from users and submits to PHP file. PHP file receives submitted data and writes at the bottom of the states.txt file.    States.txt file looks as follows: form.html <html> <head> <title> Codingzon Tutorials </title> </head> <body> <h3> Please fill following details </h3> <form action= "demo.php" method= "POST" > State Name: <input type= "text" name= "statename" /><br /> <br /> Capital City : <input type= "text" name= "capitalcity" /><br />   ...

Shoppingcart using PHP Sessions - Miniproject

Image
Shopping cart using PHP Sessions, MySQL In this tutorial, you are going to learn how to build a simple shopping cart project using PHP and MySQL. It is a basic project aimed for beginners . This project uses PHP Session to implement shopping cart. Within the session, a cart is created. Sessions allows you managing the products in the cart. Such as… adding product to the cart,  modifying the product quantity,  deleting the product finding the total number of products in the cart. etc.   Download source code from the given link: Note: Scan the code with antivirus and use it. Download Here are steps to accomplish the project. Just follow them. STEP-1   Create a project in a server. Create an image's folder inside the project folder. As given in the picture. Copy some sample products images in that. GO TOP↑   STEP-2: Start server. Open PhpMyAdmin tool in a browser, Create a database, with name shoppingcartdb. Create Table. And insert Data using the given queri...

PHP Goggle Login for Website

Image
How To Add Google Login to PHP Website           Nowadays, many websites allow the users to instantly log in with their social media accounts such as Google, Facebook, Twitter, Linked-in etc. With this, he doesn't need to create a separate account in that website in order to use it. This tutorial will teach you, how to integrate a Google login to a PHP website. There are only four steps to log in with Google PHP SDK: Create a Google credentials for your application, using this link . Create an application on the web server. Create Database usersdb in MySQL. Download Google SDK. Integrate Google Login and Get User Information     TOP ⬆ 1. Create a Google credentials for an application. Once you got credentials, start creating project in server. And follow the step-2. 2. Create an Application on Server and Create Database in MySQL.  Project folder: Query for Table:  Create the table in the database, with this query, given down below. -- -- Ta...

Java Networking Home

Image
   Java Networking Home       In this chapter, you will learn how to connect multiple devices to share resources and communication.  Java networking API allows programmers to develop scalable and robust applications. java.net package includes a set of classes and interfaces and other packages. You will learn how to use them to connect devices and share information from remote systems.     Java Tutorial Home     Java Network Programming Introduction Java Network Classes Part1   Java Network Classes Part2 Java Network Datagrams           TOP      

Disable Cut,Copy and Paste using jQuery

Image
 How to prevent cut, copy, paste in text box.       Generally while registering in website, user forced to type manually some data. Ex: confirm email/confirm password. It is because to ensure user entered correct data. This tutorial shows how to stop cut, copy, pasting data in a text field while entering his details such as email/password. The below example shows how to prevent cut, copy, and pasting in confirm email input field. This is implemented using jQuery. With the help of jQuery bind() function, it can be achieved. In the bind() function, you have to specify the cut, copy, and paste events that are fired when a user attempts to cut, copy, or paste in a text field. When it occurs, it shows an alert message to the user.   TOP   index.php <html> <head> < title >Codingzon Tutorials< /title> <head> < script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js" >< /script> < script ...