Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type:text/plain');
- $servername = "10.128.1.131";
- $username = "fedora";
- $password = "password";
- $dbname = "protoss1";
- $conn = mysqli_connect($servername, $username, $password, $dbname);
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());
- }
- if(isset($_POST['submit'])){
- $name = $_POST['nm'];
- $units = $_POST['uni'];
- $number = $_POST['num'];
- if($name !=''||$num !=''){
- $sql = INSERT INTO 'build2' (name, units, number) VALUES ('$name', '$units', '$number');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement