🔒 Closed Php database problem

Status
Not open for further replies.
Code:
<?php
    $con=mysqli_connect("localhost","root","","table");
    
    $name = $_POST["name"];
    $email = $_POST["email"];
    $password =$_POST["password"];

    $sql = "INSERT INTO 'login'(name,email,password) VALUES ('$name','$email','$password')";
    $result = mysqli_query( $con,$sql );
    
    if($result) {
        echo "registered successfully";
    }
    else {
        echo "some error occured";
    }
?>


pa help po connected po sa database kaso hindi ang table ko yung file pumupumta sa else statement some error occured
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 4
    Replies
  • 378
    Views
  • 3
    Participants
Last reply from:
joeyer13

Trending Topics

Online now

Members online
1,160
Guests online
5,619
Total visitors
6,779

Forum statistics

Threads
2,354,500
Posts
29,383,900
Members
1,079,468
Latest member
bgzin99
Back
Top