DATA INSERTION

zigi 01

JF-Expert Member
Joined
Oct 22, 2017
Posts
325
Reaction score
198
ninajaribu kuingiza data but inagoma shida ni kwenye jinsi ya kuset varriable za values.
include 'connection.php';
?>

if(issert ($_POST ['save'])){
$username =$_POST ['username'];
$password =$_POST ['password'];

$p="INSERT INTO users (username,password) VALUES ('$username' ,'$password');
$query=mysqli_query ($conn,$p);
echo"SUCCESSFUL ENTERED DATA";
}else {
echo"DON'T ENTERED, CHECK YOUR SYSTEM";
}
?>
html form it's ok,
tatizo nn kwenye hiyo values??

Sent using Jamii Forums mobile app
 
Function sio issert() ni isset() jaribu kurekebisha hapo.
 
<?php

include 'connection.php';

// your script goes here

?>
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…