The row is the one with that user_id value.
thanks
Code: Select all
if(isset( $_SESSION['user_id'] )) {
try {
$db = mysqli_connect('127.0.0.1', 'root', 'mo98nf89') or die("Could not connect: " . mysqli_error());
mysqli_select_db($db, "phpro_auth");
$sql = 'INSERT INTO phpro_users (quote ) VALUES (?)';
$stmt = $db->stmt_init( );
if ($stmt->prepare($sql)) {
// Associate placeholders with data type and variable name
$stmt->bind_param('s', $quote);
// Bind result variables
//$stmt->bind_result($username);
// Execute prepared statement
$stmt->execute( );
}
}