Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Program 5

Write a PHP program to read Student Data from an XML file and store into the MySQL database .

Using mysql functions and reading XML data from PHP

<?php 
   $xmlDoc = new DOMDocument(); // creating an object of DOMDocument class
	$xmlDoc->load("Student_details.xml"); // reading data from the XML file
?>

How to execute?

ℹ️ Make sure you use the file 'fix_mysql.inc.php' to replace mysqli commands.

  1. Fork on download in a zip file and extract in your local machine.
  2. Copy this folder into C:/wamp64/www/
  3. Start apache server using WAMP or XAMPP.
  4. Open MYSQL console and follow this video to create database and table.
  5. Open browser of your choice and enter localhost/Program-5

Screenshot


5.1

Date: 18/5/2021