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

Trending Topics

Online now

Members online
437
Guests online
2,775
Total visitors
3,212

Forum statistics

Threads
2,332,355
Posts
29,264,218
Members
1,146,235
Latest member
Areeb7
Back
Top