← prev | next →
Mr Cool 2021-10-25 21:18:00
Thanks a lot @Akhilh2o
Mr Cool 2021-10-25 21:18:18
but the data is not getting into the DB
Mr Cool 2021-10-25 21:19:19

Blank data Getting saved
Akhilh2o 2021-10-25 21:27:48
Akhilh2o 2021-10-25 21:03:00
correction in insert.php
Add before isset $arr=file_get_content(‘php://input’);
Akhilh2o 2021-10-25 21:29:22
And then access name as a key from $arr[‘name’] or $arr->name
ket_akr 2021-10-26 09:06:25
Vibha 2021-10-26 09:09:13
Anu sharma 2021-10-26 11:16:04

<?php
require’header.php’;
$department=”;
/*if(isset($_GET[‘id’])){
$id=$_post[‘id’];
}
*/
if(isset($_GET[‘id’])){
$id= mysqli_real_escape_string($conn,$_GET[‘id’]);
//$sql=”SELECT * FROM department WHERE id=’$id'”;
$query=mysqli_query($conn,”SELECT * FROM department WHERE id=’$id'”);
$row=mysqli_fetch_assoc($query);
$department=$row[‘department’];
}
if (isset($_POST[‘department’])){
extract($row);
$department= mysqli_real_escape_string($conn,$_POST[‘department’]);
if(isset($_POST[‘id’]))
{
$sql=”update department SET department=’$department’ where id=’$id'”;
}
else{
$sql=”insert into department( department) values (‘$department’)”;
}
$query=mysqli_query($conn,$sql);
//header(‘location:index.php’);
die();
}
?>
Anu sharma 2021-10-26 11:16:32
can any one help me to how to fix these error ?
h_a_r_s_a_l 2021-10-26 11:17:50
Check what contains $row
Muskan Jain 2021-10-26 11:38:51
anyone here how knows about seo
Muskan Jain 2021-10-26 11:39:04
who*
Anu sharma 2021-10-26 13:32:28
can someone help me in learn php ?
2021-10-26 13:45:27
Anu sharma 2021-10-26 13:32:28
can someone help me in learn php ?
First learn html, css, javascript, then move to php.
Anu sharma 2021-10-26 13:49:13
I already learn html, css, and js
ket_akr 2021-10-26 14:24:58
2021-10-26 13:45:27
First learn html, css, javascript, then move to php.
Js kitni learn karni hai
2021-10-26 14:31:37
ket_akr 2021-10-26 14:24:58
Js kitni learn karni hai
First learn core js and then advance js
Rk Biswa 2021-10-26 16:45:32
Anyone use Sbi payment gateway
2021-10-26 20:11:51
Hi i want to learn php but i always quit because its hard its over a year now that i am doing this. I know some php basics what should i do?
Thenandkishor 2021-10-26 20:42:55
Thenandkishor 2021-10-26 20:43:09
How to share this link using social media
Shubbb 2021-10-26 21:15:18
Thenandkishor 2021-10-26 20:43:09
How to share this link using social media
Paste on Facebook😂
goodlowyer 2021-10-26 21:20:18
Shubbb 2021-10-26 21:15:18
Paste on Facebook😂
That’s guy mean direct share options
zaidiftikhar63 2021-10-26 21:24:06
Anu sharma 2021-10-26 13:32:28
can someone help me in learn php ?
See tutorials on youtube
trinity9001 2021-10-26 21:47:55
Pls anyone got sms gateway?
trinity9001 2021-10-26 22:55:19
For sending bulk sms
goodlowyer 2021-10-26 23:00:55
trinity9001 2021-10-26 22:55:19
For sending bulk sms
How to run 😳
trinity9001 2021-10-26 23:05:53
goodlowyer 2021-10-26 23:00:55
How to run 😳
It needs an api key
Coded it would send bulk sms to usa numbers
ranivaru 2021-10-26 23:07:50
Use twilio or other sms api to send bulk sms
trinity9001 2021-10-26 23:09:58
ranivaru 2021-10-26 23:07:50
Use twilio or other sms api to send bulk sms
It doesn’t support spam bro
They would block your account
ranivaru 2021-10-26 23:10:39
trinity9001 2021-10-26 23:09:58
It doesn’t support spam bro
They would block your account
I m using it from last 6 months
goodlowyer 2021-10-26 23:11:55
trinity9001 2021-10-26 23:05:53
It needs an api key
Coded it would send bulk sms to usa numbers
But how to send 50 number in one raw
absdp2021 2021-10-26 23:13:48
trinity9001 2021-10-26 23:14:55
ranivaru 2021-10-26 23:10:39
I m using it from last 6 months
How many k do you send daily bro
trinity9001 2021-10-26 23:15:17
goodlowyer 2021-10-26 23:11:55
But how to send 50 number in one raw
I am wanting to send thousands of messages daily
← prev | next →