PHP Classes
elePHPant
Icontem

File: addcompanydb.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  Leaflet PHP MySQL Map  >  addcompanydb.php  >  Download  
File: addcompanydb.php
Role: Example script
Content type: text/plain
Description: Example
Class: Leaflet PHP MySQL Map
Manage a Leaflet based map with locations in MySQL
Author: By
Last change: DB config
Date: 2 years ago
Size: 514 bytes
 

 

Contents

Class file image Download
<?php

require_once("db.php");

$company = strip_tags($_POST['company']);
$details = strip_tags($_POST['details']);
$latitude = strip_tags($_POST['latitude']);
$longitude = strip_tags($_POST['longitude']);
$telephone = strip_tags($_POST['telephone']);
$keywords = strip_tags($_POST['keywords']);

$conn->addCompany($company, $details, $latitude, $longitude, $telephone, $keywords);
?>
<!DOCTYPE html>
<html>
 <head>
  <title>Company added</title>
 </head>
 <body>
  <h1>Company has been added</h1>
 </body>
</html>