PHP Tutorial for Beginners: Learn in 15 Days

PHP Fundamentals

Tutorial XAMPP & Wamp installation
Tutorial What is PHP? Write your first PHP Program
Tutorial PHP Comments
Tutorial PHP echo and Print
Tutorial PHP Variables,PHP Constant, Data types and Operators
Tutorial PHP Forms

Lets introduce some Logic!

Tutorial PHP Control Structures: If, If else, Nested if else, Switch Case
Tutorial PHP Loop: For loop, Foreach, While, Do While
Tutorial File Handling, File upload , File Download
Tutorial State Management, PHP Cookies, PHP Sessions
Tutorial Array in PHP
Tutorial PHP Function
Tutorial Error Handling
Tutorial PHP String , String manupulation
Tutorial PHP Numeric, PHP Mathematics

Advance Stuff

Tutorial PHP Object Oriented
Tutorial PHP and mysql
Tutorial PHP mail function
Tutorial PHP with Ajax

PHP Very Important !

Download Projects PHP Projects
Imp Questions PHP Interview Questions and Answers

Phptpoint’s free Online PHP Tutorial has heaps of PHP Interview question and well-run Interview question with answer associated to core php, cake php, codeigniter, mysql, joomla etc. which can assist you to crack the Interview for PHP developer.

Learning a programming language is one job which can be done while sitting at home. There are different languages for programming like free PHP Tutorial, Mysql Turorial, WordPress Tutorial etc which can be learned in a very effortless and trouble-free manner.

Here, at phptpoint we begin from the scratch where we can lead you on the practice of these languages.This is a free and online site where the students who wants to build a career in the same profession, can be trained about the working of the PHP. Perhaps you can go to any of the institutes where you have to spend a hefty amount also and apart from that you need to give time as well. But here at Phptpoint we provide functional and easy to understand
PHP tutorials for beginners with examples
. This is an advantage of the PHP tutorial for PHP interested students as well as the experts of PHP programming who can learn many more things through our site.

There is always distrust in the wits of the beginners that a site can’t help them in developing a better mode of understanding. But your search for a good tutorial ends up at Phptpoint. We have made this site for the benefit of the people who approach us in the zest of learning, so we have developed it in a way which can sort out the queries hand to hand. The visitors visiting to Phptpoint can directly ask for a solution to their queries. Once we know your trouble point, our job begins to find an apt way out for you.

Apart from free online tutorial Phptpoint provides you free downloading facility also. Students can easily download free php projects. There are huge numbers of projects available for your reference. You can select them to see as an example and start learning through those live examples, because examples are the best ways for describing a particular thing. You can pick any topic from the online php tutorial and we will guide you with a complete package from the definition to the explanation in a well versed manner.


  • poonam October 27, 2014 at 10:08 am Reply

    Pls send me online blood bank management system

  • rahul srivastava October 27, 2014 at 4:40 pm Reply

    this tutroial is absolutely so good….. for beginnner

    • Sanjeev Rai October 28, 2014 at 4:20 am Reply

      Thank you rahul srivastava subscribe us for latest php projects and updates

      • mahboob ali December 2, 2014 at 6:13 pm Reply

        sir i havea problem php topmenu

      • Prolayjit Dutta March 20, 2015 at 8:18 am Reply

        Hello Sir…can u plzz tel me that how to subscribe your latest php projects and updates?????
        Sir,if u kindly mail me the answer,i mean (how to subscribe your latest php projects and updates)…..then that will be better for me….


        • Sanjeev March 20, 2015 at 8:57 am Reply

          Hi, Thank you for showing interest to subscribe us
          Our subscription are at the top of the page .

  • amit jha November 12, 2014 at 9:57 am Reply

    how to save php table result to .PDF file

  • Sankalp Mahindrakar November 14, 2014 at 8:28 am Reply

    please send me ofline library management system project in php

    • Sanjeev Rai November 15, 2014 at 4:28 am Reply

      Hello Sankalp,
      sorry we don’t have the same project right now.

  • Harmeet Singh November 14, 2014 at 10:14 am Reply

    Hi, sir your site looks really very superb. Your site is really very informative.

  • FiiYacob November 18, 2014 at 5:57 pm Reply

    hello there. why i cant download the project? i just want to make this as my reference to my Final Year Project.. based on my topic.. Testing Monitoring System.. must usu Php. could somebody help me.. thank you 🙂

  • abhi November 21, 2014 at 5:25 pm Reply

    excellent website…..

  • Sachinshirola November 24, 2014 at 6:49 am Reply

    Send me projects plzz its urgents

    • Sanjeev Rai November 24, 2014 at 7:37 am Reply

      Thank you for contacting us,
      please give the title of the project.

  • kantilal November 29, 2014 at 9:21 am Reply

    nice website.i want student management system in php and hotel management system in php.please send me

  • jenifer December 6, 2014 at 4:41 am Reply

    send me a non-government organization project with coding

  • Prabhakar Waghmare December 11, 2014 at 4:49 pm Reply

    Can we use login ID and username in the numeric form.

    • Sanjeev Rai December 15, 2014 at 12:52 pm Reply

      Yes you can, but in that case you have to generate the unique login id for each user.

  • ragul December 12, 2014 at 5:06 am Reply

    i want ERP management system project in php program. pls send me.

    • Sanjeev Rai December 13, 2014 at 7:00 am Reply

      Its difficult to develop ERP management in PHP, it will take lots of time.

  • Mohamed December 15, 2014 at 6:43 am Reply

    i want Financial management system project in php program can yuou help me to send me this project

    • Sanjeev Rai December 30, 2014 at 6:19 pm Reply

      Mohamed, please create a document, about your project with brief description.

  • midhun raj December 15, 2014 at 8:22 am Reply

    pls send me a project that consisting a page of manual attendance system

    • Sanjeev Rai December 15, 2014 at 12:36 pm Reply

      Hello midhun raj,
      for attendance management system, you have to wait. or you can try it by urself and could discuss

  • Rahul December 19, 2014 at 12:01 pm Reply

    I want Vidio chatting module.please send me.

  • Sumit Kapoor December 22, 2014 at 7:45 pm Reply

    Hello Sir,
    How can we create a dynamic database using mysql & PHP??,Which means whenever user will enter something in the form then it will create a new database with same number of fields but with the different name from the previous database.

    • Sanjeev Rai December 25, 2014 at 11:02 am Reply

      Hello sumit, you can check database exists or not if exists then check table exists or not if table already exists then save the data inside the table otherwise first create database then create table, save the data

  • rafi January 2, 2015 at 5:27 am Reply

    can you please send me facebook project in php.

  • Amsath January 5, 2015 at 7:46 am Reply

    I want online college management system project in php.. Please provide me sir..

    • Sanjeev Rai January 18, 2015 at 12:30 pm Reply

      Hi Amsath it will take some time.
      We will upload some new project asap.

  • amol January 6, 2015 at 10:44 am Reply

    I have need a healthv club management system in php ofline plz send

    • Sanjeev Rai January 7, 2015 at 12:13 pm Reply

      Hello amol we don’t have Health club management System project right now. it will take some time to develop

  • SURYAPRAKASH January 8, 2015 at 2:27 pm Reply

    Hello Sir!

    I would like to do my final year project using PHP.Can i have your good project idea please. Please give me a title and description i will try my level best with your guidance. Awaiting your reply as early as possible.

    Thank You!

  • Saddam January 9, 2015 at 10:22 am Reply

    knowledge in stock ..vry gud site..thanx sir

  • SURYAPRAKASH January 10, 2015 at 7:26 am Reply

    Hello Sir!
    I would like to do my final year project using PHP. Please give me an idea for project that will be implemented practically. Most preferably that helps college portal!

    • Sanjeev Rai January 10, 2015 at 4:57 pm Reply

      Hi Suryaprakash
      Online College Portal is good title.
      First Create a document related to all modules. Design database, Design Look and feel using HTML,CSS then start implementation using PHP one by one module

  • shilpi January 14, 2015 at 7:41 am Reply

    Hello sir my project is is a live project in php this project make to seo based so plz help what is the steps for seo based for ex and is a seo based project so what can i do my website is fully seo based which planning. my project got high ranking for all search engines

  • jaiki January 15, 2015 at 9:41 am Reply

    please tell me how to insert an image in php?

  • shahid January 27, 2015 at 11:50 am Reply

    hello sir please the photo gallery with data base manage admin panel & news update

  • Rohit Raj January 29, 2015 at 5:25 pm Reply

    Hello sir, i want to display data from mysql table dynamically. Means when i click on show records so how will i get all the records in between my header and footer elements. When i am showing all records from mysql data, they are getting overlapped on the footer. Please tell me…………

  • satish February 2, 2015 at 5:59 pm Reply

    Sir, I would like become a programmer. Kindly Plz give a notes to learn PHP complete course.

  • navin February 4, 2015 at 2:58 am Reply

    sir i want a project on web site designing for a bakery in php. sir please help me.

    • Sanjeev February 16, 2015 at 10:24 am Reply

      Navin it will take some time

  • Hasan February 4, 2015 at 9:31 am Reply

    Could you please upload an online blood bank management system project.
    It is not in your project collection.

    tnx in advance

    • Sanjeev Rai February 13, 2015 at 10:47 am Reply

      it will take some time we will upload it soon

  • Nikhil February 5, 2015 at 5:18 am Reply

    Hello sir.

    Your Site is very helpful for me… Have any project like online tourist guide booking project..???
    Ya any other project related to it….

    please give replay as soon as possible…

    Thank you

  • sainath February 6, 2015 at 10:07 am Reply

    i need a help. of creating dynamic database table thru in the inputs of excel sheet while reading

  • Suresh February 6, 2015 at 11:45 am Reply

    hello sir,
    I am SURESH

    I am a final year student for it. my project title is PHP & MySQL. so pls some ideas for workout my project sir. because your website is very helpful for students. pls send some important notes and points for my mail id sir. “”

  • akhil February 8, 2015 at 12:02 pm Reply

    sir what is difference between php and cakephp

    • Sanjeev Rai February 13, 2015 at 10:34 am Reply

      PHP is ther server side scripting language. cakephp is a php tools or a php framework i.e used to develop rapid application

  • Md.Ali February 12, 2015 at 7:25 am Reply

    Dear sir,

    Your website very usefully & with php coding . sir if u have inventory management system or stoke management system please give me example .actuate i want build E-commerce website but if client parches a product then automatic not update database quantity – ………

    • Sanjeev Rai February 12, 2015 at 10:27 am Reply

      I think no need to develop inventory management to manage your stock.
      Deveop e-commerce website using any cms like opencart,magento etc will automatically manage your stock

  • sachin February 13, 2015 at 4:56 am Reply

    plz.give my online test series projects.

  • sachin February 17, 2015 at 9:50 am Reply

    plz sir
    how to use woocommerce in wordpress.

  • sachin February 17, 2015 at 1:12 pm Reply

    how can create blogs in wordpress.

  • Anil kumar February 18, 2015 at 7:02 am Reply


    how we can use facebook api to login in php.

    please send me a example program .

  • pardeep singh March 16, 2015 at 3:13 pm Reply

    plz sir how we can use paypal system in php

    • Sanjeev March 19, 2015 at 10:30 am Reply

      Hi Pradeep,

      go through the paypal official site


  • sneha urfate March 18, 2015 at 9:21 am Reply

    Sir, want simple online examination project

  • Sri March 19, 2015 at 6:15 am Reply

    Hello sir..

    We are developing an application in PHP with Mysql backend.I’m a beginner .I’ve a to create a CHAT option to all my logged in Users in my web application.It must be looks like google chat(Hangout)

    can u please guide me how to create a CHAT form .

    • Sanjeev March 19, 2015 at 10:20 am Reply

      Hi Sri,

      It will take some time to develop Online Chat using PHP and Mysql.
      if you want to integrate an Api then go through “” this site.

  • Hemraj Kumawat March 23, 2015 at 8:56 am Reply

    Hello Sir,

    If we submit any date in textbox.

    Please tell me How can we find day in submitted date (also using leap year)


    • Sanjeev March 25, 2015 at 12:51 pm Reply

      first create three drop down for month.”-“.date.”-“.year.
      create a field in database table choose date type.
      now store. when you want to display the date only fetch data from database. convert it into an array using explode function(“-“,$str)
      now display the 2nd index of the array

  • Ketan April 24, 2015 at 1:53 pm Reply

    Sir i m not able to find the localhost.sql file… instead there is a file called faceback.sql.. abd i m not able to import that file in phpmyadmin sql… its showing some error like


    SQL query:

    — Database: faceback

    — ——————————————————–

    — Table structure for table admin_info


    Username varchar( 200 ) NOT NULL ,
    Password varchar( 200 ) NOT NULL ) ENGINE = InnoDB DEFAULT CHARSET = latin1;

    MySQL said:

    #1046 – No database selected

    • Sanjeev Rai April 25, 2015 at 4:10 am Reply

      Hi Ketan,

      You Only need facebook.sql

      First create a database “facebook”

      Now select your database “facebook” and import facebook.sql file.

  • chandana April 29, 2015 at 3:02 pm Reply

    Hello sir, I m doing project on php n mysql and title is student internal marks assessment plz send me the source code on this

    • Sanjeev Rai April 30, 2015 at 7:00 am Reply

      Hi Chandana,
      as You told you are working on the project. keep it up and if you have some query regarding the project discuss with us through forum.

  • Jyoti Singh May 2, 2015 at 7:41 pm Reply

    hello,Sanjeev Sir……………this website is very helpful for me ……………thnx.. to provide such type of website…………thnx again…….sir i want whole project report on online examination plzz send me ..on

    • Sanjeev Rai May 3, 2015 at 4:33 am Reply

      Online Examination Project report sent on your given mail check it.
      if need modify it.

      • Jyoti Singh May 3, 2015 at 10:01 am Reply

        yupp…..sirr project report is on my mail………………..thnxxx

  • Pascal May 3, 2015 at 1:09 pm Reply

    Hi Mr Sanjeev, your online examination project is very useful, I would be very grateful if you could send me the report to the following email address thanking you advance regards Pascal

    • Sanjeev Rai May 4, 2015 at 5:24 am Reply

      Hi Pascal Project Report has sent on your mail pls modify the report according to your need.

      • Pascal May 4, 2015 at 1:46 pm Reply

        Thansks you so much

  • Jyoti Singh May 4, 2015 at 6:10 pm Reply

    hello Sanjeev sir, i want that whole document /project report on mailing server with sql ……its very important gmail id is……………

  • kashif May 5, 2015 at 5:21 pm Reply

    hello sanjeev sir,.. i want the project report of email server with sql in php.My email id is send it on my email id. thanking you in advance…

    • Sanjeev Rai May 6, 2015 at 12:29 pm Reply

      Hi Kashif,
      Project report has sent on your mail.

      • kashif May 6, 2015 at 6:04 pm Reply

        Thank you sir….

  • Jyoti Singh May 7, 2015 at 1:37 pm Reply

    hello sanjeev sir,.. i want the project report of email server with sql in php.My email id is send it on my email id. thanking you in advance…

    • Sanjeev Rai May 11, 2015 at 5:02 am Reply

      Online Mailserver Poject Report sent on your mail

  • Prateek May 8, 2015 at 7:42 am Reply

    Good Morning Sir, i need the project report of online Shopping(… i downloaded from this link. Please it’s my humble request if you have project report or synopsis please send it to my mail id is

  • Sanjeev Rai May 11, 2015 at 5:10 am Reply

    Hi Creating the docs ASAP i will send you

  • Amit Khan May 12, 2015 at 5:20 am Reply

    Pls send me the code in PHP for timer for online examination system in my email id

  • Manu Sharma May 15, 2015 at 10:33 am Reply

    hi,sir i want php code for dropdown list if i select country india then all indian state bindup in state and if i select state than all cities bindup with city

  • kashif May 16, 2015 at 12:53 pm Reply

    hello sir…the project online discussion forum mentioned in your list is not opening.Plz sir i want this project and its report..I’ll be highly thankful to you.

  • Rani Sahu May 19, 2015 at 3:07 am Reply

    Good morning sir….. plz sir send me the source code and documentation of social networking site to my mail id:””

  • Manu Sharma May 20, 2015 at 5:27 am Reply

    good morning sir,
    sir i want to make dynamic gallery in php and when i click on an image then image must open in a popup box and we can go on next and previous image plz help email address is “”

  • Vipin Sharma May 21, 2015 at 4:30 am Reply

    hello sir, i want to know about the notifications like fb notification, how can we send or receive notifications in php without using jquery.

  • Vipin Sharma May 21, 2015 at 4:31 am Reply

    i also need a project if u can provide , like a small pics sharing system with like dislikes and commenting options

  • Vipin Sharma May 21, 2015 at 4:32 am Reply
  • Vipin Sharma May 21, 2015 at 4:36 am Reply

    please help 😐

  • wubaxon May 21, 2015 at 11:31 am Reply

    Hello sir, i need a multiple user login form with database
    me email

  • Vipin Sharma May 22, 2015 at 8:30 am Reply

    hello sir , i want to know
    how to call two ajax function on body load..

  • Kuldeep Panwar May 23, 2015 at 7:19 am Reply

    hi i want know that what`s php

  • Kuldeep Panwar May 23, 2015 at 7:23 am Reply


  • Preetam Satpute May 28, 2015 at 3:23 pm Reply

    Hi, I just need to know whether is there any way to open and read a .cfg(configuration) file in PHP and also to compare a string from the file with a user inputted string. Any help will be appreciated. Thanks in advance…..

    • Sanjeev Rai May 29, 2015 at 5:15 pm Reply

      Hi Preetam,
      Php configuration is known as initialization you need to change (php.ini) file for any configuration.
      ask your question through our Forum. its difficult to give answer against all comments

  • Karthik Raja June 5, 2015 at 4:51 pm Reply

    i need a new project for php

  • Sanjeev Rai June 9, 2015 at 12:19 pm Reply

    Thank you manu ASAP i will upload dynamic image gallery

  • Manu Sharma June 10, 2015 at 9:29 am Reply

    okkkk and thanks you sir

  • avdhesh kumar June 10, 2015 at 11:01 am Reply

    does it work or not if not then please help me to figure out from this problem

    $query=”SELECT * FROM id_pwd WHERE email=’$em’ AND password=’$pwd'”;

    if($em==$em|| $pwd==$pwd)








    • Sanjeev Rai June 10, 2015 at 11:38 am Reply

      Hello next time ask your question through Forum

      $query=mysql_query(“SELECT * FROM id_pwd WHERE email=’$em’ AND password=’$pwd'”);



  • Monisha June 15, 2015 at 4:13 pm Reply

    hello sir,i need any project in php. my email id is
    plz send to me

    • Sanjeev Rai June 16, 2015 at 8:51 am Reply

      Hi Monisha,
      You can download multiple project form the given link below. When you click on download link it will ask login from facebook and share on facebook.
      Download starts automatically.

  • Niharika July 13, 2015 at 3:45 pm Reply

    hello sir,i want a project on online social networking site……please help me the with the source code…my mail id is

  • Hamzat Oluwatosin July 25, 2015 at 3:02 pm Reply

    Hello, I need php codes for online hostel allocation email is

    • Sanjeev Rai July 26, 2015 at 4:56 am Reply

      Thank you for contacting us Hamzat Oluwatosin.
      Send u email regarding the project.

  • Akash Bhardwaj July 27, 2015 at 10:08 am Reply

    Hi Sir;

    Pleas assist me
    how I validate our check box or radio button using java script to check user
    choose these or not.

    • Sanjeev Rai July 27, 2015 at 11:29 am Reply

      Hi Akash,
      Why u want to do this through javascript while u can do easily using HTML5
      eg: Male

  • Manik Kumar Shil July 28, 2015 at 4:20 pm Reply

    Sir i want to video tutorial of this php projects..

    • Sanjeev Rai July 29, 2015 at 5:28 am Reply

      Hi Manik,
      at present we don’t created any video regarding PHP Projects. ASAP i will try
      Thanks for suggestion

  • asheesh rai July 30, 2015 at 8:15 am Reply

    sir I want to know that when we create any project in php then html page and php page source code write on same page or different-2 page if different page how to save in htdocs folder and how to execute it?

  • asheesh rai July 30, 2015 at 8:19 am Reply

    please provide basic step for how to save html forms and php page in htdocs on xamp and how to execute it?
    please send step on my email id

  • sachin August 24, 2015 at 1:16 pm Reply

    how to make a create json in php

    • Sanjeev Rai August 24, 2015 at 4:40 pm Reply

      Sachin ASAP i will upload json with php

  • Shrad Patil August 25, 2015 at 6:46 am Reply

    hi sir i want to login with facebook account in php localhost can u help me sir..

  • Sonali Sharma August 26, 2015 at 9:03 am Reply

    Hello sir,
    i am beginner in php so i want a small project at fresher level. can you please provide project?

  • Prince Yogendra Pratap September 1, 2015 at 12:32 pm Reply

    how to change core php code to codeigniter

    • Sanjeev Rai September 2, 2015 at 9:00 am Reply

      Hi Prince,
      its difficult to convert core php script in codeigniter because in core php generally use procedural script while codeigniter completely follow oops with mvc.

  • Govardhan October 16, 2015 at 10:46 am Reply

    hai, i want to upload the video and audio to mysql database and it able to visible on html front end webage.
    what are the steps to follow to do this.
    Thanks in advance

  • Raj Kumar December 2, 2015 at 8:16 am Reply

    how to create billing software in php

    • Sanjeev Rai December 3, 2015 at 8:54 am Reply

      Hello Raj Kumar
      First collect your requirement. Design effective database according to given req. Then move for development

  • Kan Mani December 9, 2015 at 4:24 am Reply

    hello sir,
    i need source code for ePay system in php

  • Sravan Telu MA MCA December 17, 2015 at 4:06 pm Reply

    Hello Sir,
    I’m Doing MCA Final year Now. I Want a Major Project on PHP Can you Please send any project with the installation steps sir!!!

    My Mail Id:

    • Sanjeev Rai December 18, 2015 at 11:44 am Reply

      Hello Sravan

      You can download any project from :

      Installation Steps are given there

  • Fekadu December 22, 2015 at 8:21 pm Reply

    can you send me “online cinima ticket Reservation in PHP Project”
    Please i need your help.

  • Tinku kumar January 4, 2016 at 7:20 am Reply

    hello sir,
    i am tinku kumar i developed web page in php how i connect to mail .if any person fill form for any query how to get person mail in my mail id.

  • Tinku kumar January 4, 2016 at 7:32 am Reply

    hello sir,
    if any person fill form for any query how to get person information in my mail id.

  • Aayesha Siddiqa March 9, 2016 at 1:37 pm Reply

    Hello!!!! can u please let me know whether i can do a project named Crime Management System using html, php in the front end????
    Thanks in advance

    • Sanjeev Rai March 10, 2016 at 9:21 am Reply

      You want to develop this one by ur-self ? or you want the project from us ?

  • Shivraja T S April 24, 2016 at 5:45 am Reply

    Hello Sir i can u help by sending Hotel Table Booking and Food Ordering System project on PHP and MYSQL plz if u have send to

  • Ashish Rai April 29, 2016 at 6:12 am Reply

    please help me
    I want to login with facebook on website,save data into own database and redirect to user dashboard.

  • Ashish Rai May 4, 2016 at 5:03 am Reply

    please help me
    I have login issue.My question is that if user already logged in and if we open same application in new tab in same browser but again asking for login while user have already logged in.

  • kajal sonar August 11, 2016 at 11:05 am Reply

    how can we create a dynamic menu in php

    • Sanjeev Rai August 11, 2016 at 12:34 pm Reply

      Hello Kaja
      You want to get the menu from Database ? we will upload tutorial ASAP.

  • Uma Mahesh Devineni September 6, 2016 at 5:33 pm Reply

    Hi sir can you send me school management software for web based on php

    my mail id is and

    • Sanjeev Rai September 7, 2016 at 11:46 am Reply

      Hello Uma
      SMS Project is Paid. If you want will provide u demo link.

  • Manoj Jain October 5, 2016 at 2:49 pm Reply

    how can i change the admin user name and password

    • Sanjeev Rai October 6, 2016 at 12:35 pm Reply

      Hello Manoj
      about which project you are talking ?

    • Md Anwer Kamal March 9, 2017 at 3:43 am Reply

      short cut..
      1. go to localhost/phpadmin
      2. select Database from Top right side.
      3. Select any existing Database from the Database table.
      4.Got admin section of the existing database.
      5. Now you can delete or edit and also create a new admin name and Password.
      6. then press on go. (Your admin name and Password has been Successfully Changed/Updated.)

  • Manoj Jain October 5, 2016 at 3:03 pm Reply

    want to create new admin

  • Sohni saxena March 14, 2017 at 9:54 am Reply

    Hlo sir

    This dropdown is not working can u tell me what is the error..

    <form action= "” method=’post’ name=’form_filter’ form=”frm” >


  • Sohni saxena March 16, 2017 at 6:47 am Reply

    Hello sir this is a full code dropdown list.

    <form action= "” method=’post’ id=’frm’ name=”frm” >


    //connect to database
    include "cs/config.php";

    // process form when posted
    /*echo 'deepak';
    echo '’;
    echo $_POST[‘search’];
    echo ”;*/
    if($_POST[‘search’] ==’A’)
    // query to get all Fitzgerald records
    $query = “SELECT * FROM edition WHERE status=’A'”;
    elseif($_POST[‘search’] == ‘P’)
    // query to get all Herring records
    $query = “SELECT * FROM edition WHERE status=’P'”;
    // query to get all records
    $query = “SELECT * FROM edition”;
    $sql = mysqli_query($db,$query);

    while ($row = mysqli_fetch_array($sql))
    echo $Id = $row[“id”];
    echo $status = $row[“status”];
    //$LastName = $row[“LastName”];

    // Echo your rows here…
    echo ‘The user ID is:’ . $row[‘Id’];
    echo ‘The user ID is:’ . $row[‘status’];

  • A BALAKRISHNA REDDY April 12, 2017 at 3:40 am Reply

    “1” => $test1
    How can i solve this ..getting an error “illigal offset”

  • A BALAKRISHNA REDDY April 12, 2017 at 3:46 am Reply

    How can i assign array variable values to index usin multi dimenstional array in php

    “1” => $test1
    How can i solve this ..getting an error “illigal offset”

  • A BALAKRISHNA REDDY April 13, 2017 at 2:31 am Reply

    how can i assign php variable value to multi dimensional array index in php

  • A BALAKRISHNA REDDY April 14, 2017 at 3:59 am Reply

    Here Text1,text2,text3…………………$text10 are getting array elements as input from the form
    and inserting these array elements in mysql data base ….below is my code ..when iam executing this code iam getting illegal offset error at foreach loop so….how can i solve this error..plz help me out..

  • Rana G May 3, 2017 at 2:24 am Reply

    Sir , where is the download link of php core tutorial in pdf

  • jigisha patel July 25, 2017 at 6:48 am Reply

    Sir,In my registration form i want to delet row manually but it get error just like ” undefine variable index”
    $run=”DELETE from registration WHERE ‘id’=’$Id’ “;
    please give me reply as soon as possible

    • Sanjeev Rai July 26, 2017 at 6:19 am Reply

      Try this
      $run=”Delete from registraion where id=’ “.$id. ” ‘ “

  • ankush. sharma September 10, 2017 at 7:01 pm Reply

    hello sir

    sir isme agr m semicolon hta deta hu echo wali line se end me se ye phir b hello php print kr deta h.
    is it possible sir in php ?

    • Sanjeev Rai September 11, 2017 at 4:57 pm Reply

      Hello ankush
      Single line statement ho to koi problem nahi aati hi, but multiple lines hoga then parse error show karega

  • Sanjeev Rai October 26, 2017 at 12:21 pm Reply

    $header is variable there.
    Discuss through forum because all comment section is going to close

Leave a Reply

Your email address will not be published. Required fields are marked *