Jump to content

Mysqli prepare not inserting


AdamHull12

Recommended Posts

Hello, I have this code

<?php
 $stmt = $db->prepare("INSERT INTO `members` (`playername`,`player_login_name`,`player_login_pass`,`my_email`,
                                           `my_gender`,`signup_IP`,`signup_time`)
                    VALUES(?,?,?,?,?,?,?)");
$stmt->bind_param("ssssssi",$_POST['email'],$_POST['email'],md5($_POST['pass']),$_POST['email'],$_POST['gender'],$_POST['REMOTE_ADDR'],time());
$stmt->execute();
$stmt->close();
?>

and i will not insert into my database. I have check the syntax and there is no error, can anyore help me

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/292682-mysqli-prepare-not-inserting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.