Menu
Category

PHP

Inserting Dynamic Form Values as Array in MYSQL Using Foreach

PHP, Tech-Byte By Oct 06, 2013 4 Comments

Hello friends today i was working at some project and stuck when i was inserting dynamic form fields data in the database. So i have decided to store the values in array and then save them in database. I have 3 fields with the same name and id so i declare the all text field name with name[]. But i…

Compress PHP Website With GZIP

PHP, Tech-Byte By Aug 06, 2013 1 Comment

Compress Website with GZIP I was checking some websites yesterday and i saw they took too much time to load. And i have to wait till website opens and it was just horrible. So i thought why people dont use the gzip which will help them to make their website perform faster. So here i am giving a simple script…

Simple XML – Use XML in PHP

PHP By Jul 08, 2013 No Comments

Now these days XML and Json are the best ways for data transfer. Here is the code for how to use the XML in PHP. We will use 2 ways to read the XML File in PHP. 1. Reading xml file using DOM 2. Reading xml file using Simple XML result in Table Reading xml file using DOM $xml=new DOMDocument(); $xml->load(“Details.xml”); $details=$xml->getElementsByTagName(“details”);…

Free Weather Widget for website or blog

PHP, Tech-Byte, Tips By May 25, 2013 1 Comment

Hello friends I have made a Weather Widget for you. You can use it and share it with others. Right now it shows most of the city’s and some time it is blank which means weather info is not available. This code is written purely in PHP and Weather API has been used in this. It took  4 to 5…

How to Fetch Data From Database and Display in Table in PHP

PHP By Apr 27, 2013 No Comments

Hello Friends today i am going to put a tutorial related to How to Fetch Data From Database and Display in Table in PHP. Task is very easy what you need is a beginner knowledge of Mysql and PHP. First of all we will discuss how we will send the data to the database. HTML Form We will use the…