🔒 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
  • 355
    Views
  • 3
    Participants
Last reply from:
joeyer13

Trending Topics

Online now

Members online
516
Guests online
655
Total visitors
1,171

Forum statistics

Threads
2,274,612
Posts
28,957,198
Members
1,234,355
Latest member
Ghostsaveich
Back
Top