DATA INSERTION

zigi 01

JF-Expert Member
Oct 22, 2017
295
155
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
 
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.
 
Back
Top Bottom