Editing row data












-4















<?php
//$id = $_GET['id'];
$GLOBALS['a'] = isset($_GET['id']) ? $_GET['id'] : '';
echo "$a";

$db = mysqli_connect('localhost', 'root', '', 'ems');
if (!$db) {
die("Connection failed: " . mysqli_connect_error());
}
$first_name = "";
$last_name = "";
//$mobile = "";
$email = "";
$gender = "";
$designation_id = "";
$address = "";
$errors = array();

if (isset($_POST['reg_user'])) {
$first_name = mysqli_real_escape_string($db, $_POST['first_name']);
$last_name = mysqli_real_escape_string($db, $_POST['last_name']);
//$mobile = mysqli_real_escape_string($db, $_POST['mobile']);
$password = mysqli_real_escape_string($db, $_POST['password']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$gender = mysqli_real_escape_string($db, $_POST['gender']);
$designation_id = mysqli_real_escape_string($db, $_POST['designation_id']);
$address = mysqli_real_escape_string($db, $_POST['address']);
$user_check_query = "SELECT * FROM users WHERE email='$email' LIMIT 1";
$result = mysqli_query($db, $user_check_query);
$user = mysqli_fetch_assoc($result);

if ($user) { // if user exists

if ($user['email'] === $email) {
array_push($errors, "email already exists");
}
}

// echo "$a";

$sql = "UPDATE `users` SET `first_name` = '$first_name' ,`last_name`='$last_name', `password`='$password',
`email`='$email', `gender`='$gender', `designation_id`='$designation_id',`address`='$address' WHERE `users`.`id` = '$a'";

if (mysqli_query($db, $sql)) {
mysqli_close($db);
header('Location: index.php');
echo "$a";
exit;
} else {
echo "Error updating record";
}
}

?>


while trying to update the row through the form it redirects to index page without updating the row....no erros..pls help me.



while trying to update the row through the form it redirects to index page without updating the row....no erros..pls help me.










share|improve this question

























  • its not error, its your message that means else part execute. something wrong in your query, print your query and run on sql so its given error or run update record

    – Bhargav Chudasama
    Nov 20 '18 at 5:27













  • You are mixing backticks ` & quotes '. 'password' will be treated as string not column name.

    – Sougata Bose
    Nov 20 '18 at 5:28













  • Sougata Bose...updated bro...no errors but row not updated

    – mahesh
    Nov 20 '18 at 5:54
















-4















<?php
//$id = $_GET['id'];
$GLOBALS['a'] = isset($_GET['id']) ? $_GET['id'] : '';
echo "$a";

$db = mysqli_connect('localhost', 'root', '', 'ems');
if (!$db) {
die("Connection failed: " . mysqli_connect_error());
}
$first_name = "";
$last_name = "";
//$mobile = "";
$email = "";
$gender = "";
$designation_id = "";
$address = "";
$errors = array();

if (isset($_POST['reg_user'])) {
$first_name = mysqli_real_escape_string($db, $_POST['first_name']);
$last_name = mysqli_real_escape_string($db, $_POST['last_name']);
//$mobile = mysqli_real_escape_string($db, $_POST['mobile']);
$password = mysqli_real_escape_string($db, $_POST['password']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$gender = mysqli_real_escape_string($db, $_POST['gender']);
$designation_id = mysqli_real_escape_string($db, $_POST['designation_id']);
$address = mysqli_real_escape_string($db, $_POST['address']);
$user_check_query = "SELECT * FROM users WHERE email='$email' LIMIT 1";
$result = mysqli_query($db, $user_check_query);
$user = mysqli_fetch_assoc($result);

if ($user) { // if user exists

if ($user['email'] === $email) {
array_push($errors, "email already exists");
}
}

// echo "$a";

$sql = "UPDATE `users` SET `first_name` = '$first_name' ,`last_name`='$last_name', `password`='$password',
`email`='$email', `gender`='$gender', `designation_id`='$designation_id',`address`='$address' WHERE `users`.`id` = '$a'";

if (mysqli_query($db, $sql)) {
mysqli_close($db);
header('Location: index.php');
echo "$a";
exit;
} else {
echo "Error updating record";
}
}

?>


while trying to update the row through the form it redirects to index page without updating the row....no erros..pls help me.



while trying to update the row through the form it redirects to index page without updating the row....no erros..pls help me.










share|improve this question

























  • its not error, its your message that means else part execute. something wrong in your query, print your query and run on sql so its given error or run update record

    – Bhargav Chudasama
    Nov 20 '18 at 5:27













  • You are mixing backticks ` & quotes '. 'password' will be treated as string not column name.

    – Sougata Bose
    Nov 20 '18 at 5:28













  • Sougata Bose...updated bro...no errors but row not updated

    – mahesh
    Nov 20 '18 at 5:54














-4












-4








-4








<?php
//$id = $_GET['id'];
$GLOBALS['a'] = isset($_GET['id']) ? $_GET['id'] : '';
echo "$a";

$db = mysqli_connect('localhost', 'root', '', 'ems');
if (!$db) {
die("Connection failed: " . mysqli_connect_error());
}
$first_name = "";
$last_name = "";
//$mobile = "";
$email = "";
$gender = "";
$designation_id = "";
$address = "";
$errors = array();

if (isset($_POST['reg_user'])) {
$first_name = mysqli_real_escape_string($db, $_POST['first_name']);
$last_name = mysqli_real_escape_string($db, $_POST['last_name']);
//$mobile = mysqli_real_escape_string($db, $_POST['mobile']);
$password = mysqli_real_escape_string($db, $_POST['password']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$gender = mysqli_real_escape_string($db, $_POST['gender']);
$designation_id = mysqli_real_escape_string($db, $_POST['designation_id']);
$address = mysqli_real_escape_string($db, $_POST['address']);
$user_check_query = "SELECT * FROM users WHERE email='$email' LIMIT 1";
$result = mysqli_query($db, $user_check_query);
$user = mysqli_fetch_assoc($result);

if ($user) { // if user exists

if ($user['email'] === $email) {
array_push($errors, "email already exists");
}
}

// echo "$a";

$sql = "UPDATE `users` SET `first_name` = '$first_name' ,`last_name`='$last_name', `password`='$password',
`email`='$email', `gender`='$gender', `designation_id`='$designation_id',`address`='$address' WHERE `users`.`id` = '$a'";

if (mysqli_query($db, $sql)) {
mysqli_close($db);
header('Location: index.php');
echo "$a";
exit;
} else {
echo "Error updating record";
}
}

?>


while trying to update the row through the form it redirects to index page without updating the row....no erros..pls help me.



while trying to update the row through the form it redirects to index page without updating the row....no erros..pls help me.










share|improve this question
















<?php
//$id = $_GET['id'];
$GLOBALS['a'] = isset($_GET['id']) ? $_GET['id'] : '';
echo "$a";

$db = mysqli_connect('localhost', 'root', '', 'ems');
if (!$db) {
die("Connection failed: " . mysqli_connect_error());
}
$first_name = "";
$last_name = "";
//$mobile = "";
$email = "";
$gender = "";
$designation_id = "";
$address = "";
$errors = array();

if (isset($_POST['reg_user'])) {
$first_name = mysqli_real_escape_string($db, $_POST['first_name']);
$last_name = mysqli_real_escape_string($db, $_POST['last_name']);
//$mobile = mysqli_real_escape_string($db, $_POST['mobile']);
$password = mysqli_real_escape_string($db, $_POST['password']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$gender = mysqli_real_escape_string($db, $_POST['gender']);
$designation_id = mysqli_real_escape_string($db, $_POST['designation_id']);
$address = mysqli_real_escape_string($db, $_POST['address']);
$user_check_query = "SELECT * FROM users WHERE email='$email' LIMIT 1";
$result = mysqli_query($db, $user_check_query);
$user = mysqli_fetch_assoc($result);

if ($user) { // if user exists

if ($user['email'] === $email) {
array_push($errors, "email already exists");
}
}

// echo "$a";

$sql = "UPDATE `users` SET `first_name` = '$first_name' ,`last_name`='$last_name', `password`='$password',
`email`='$email', `gender`='$gender', `designation_id`='$designation_id',`address`='$address' WHERE `users`.`id` = '$a'";

if (mysqli_query($db, $sql)) {
mysqli_close($db);
header('Location: index.php');
echo "$a";
exit;
} else {
echo "Error updating record";
}
}

?>


while trying to update the row through the form it redirects to index page without updating the row....no erros..pls help me.



while trying to update the row through the form it redirects to index page without updating the row....no erros..pls help me.







php mysql






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 7:02







mahesh

















asked Nov 20 '18 at 5:23









mahesh mahesh

11




11













  • its not error, its your message that means else part execute. something wrong in your query, print your query and run on sql so its given error or run update record

    – Bhargav Chudasama
    Nov 20 '18 at 5:27













  • You are mixing backticks ` & quotes '. 'password' will be treated as string not column name.

    – Sougata Bose
    Nov 20 '18 at 5:28













  • Sougata Bose...updated bro...no errors but row not updated

    – mahesh
    Nov 20 '18 at 5:54



















  • its not error, its your message that means else part execute. something wrong in your query, print your query and run on sql so its given error or run update record

    – Bhargav Chudasama
    Nov 20 '18 at 5:27













  • You are mixing backticks ` & quotes '. 'password' will be treated as string not column name.

    – Sougata Bose
    Nov 20 '18 at 5:28













  • Sougata Bose...updated bro...no errors but row not updated

    – mahesh
    Nov 20 '18 at 5:54

















its not error, its your message that means else part execute. something wrong in your query, print your query and run on sql so its given error or run update record

– Bhargav Chudasama
Nov 20 '18 at 5:27







its not error, its your message that means else part execute. something wrong in your query, print your query and run on sql so its given error or run update record

– Bhargav Chudasama
Nov 20 '18 at 5:27















You are mixing backticks ` & quotes '. 'password' will be treated as string not column name.

– Sougata Bose
Nov 20 '18 at 5:28







You are mixing backticks ` & quotes '. 'password' will be treated as string not column name.

– Sougata Bose
Nov 20 '18 at 5:28















Sougata Bose...updated bro...no errors but row not updated

– mahesh
Nov 20 '18 at 5:54





Sougata Bose...updated bro...no errors but row not updated

– mahesh
Nov 20 '18 at 5:54












1 Answer
1






active

oldest

votes


















0














please try this updated code.May be the issue reason is value not assign properly. So that it's moved else part. Now i have moved the update query inside the POST Check value.



<?php
//$id = $_GET['id'];
$id = isset($_GET['id']) ? $_GET['id'] : '';
$db = mysqli_connect('localhost', 'root', '', 'ems');
if (!$db) {
die("Connection failed: " . mysqli_connect_error());
}
$first_name = "";
$last_name = "";
//$mobile = "";
$email = "";
$gender = "";
$designation_id = "";
$address = "";
$errors = array();

if (isset($_POST['reg_user']) && $id!='') {
$first_name = mysqli_real_escape_string($db, $_POST['first_name']);
$last_name = mysqli_real_escape_string($db, $_POST['last_name']);
//$mobile = mysqli_real_escape_string($db, $_POST['mobile']);
$password = mysqli_real_escape_string($db, $_POST['password']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$gender = mysqli_real_escape_string($db, $_POST['gender']);
$designation_id = mysqli_real_escape_string($db, $_POST['designation_id']);
$address = mysqli_real_escape_string($db, $_POST['address']);
$user_check_query = "SELECT * FROM users WHERE email='$email' LIMIT 1";
$result = mysqli_query($db, $user_check_query);
$user = mysqli_fetch_assoc($result);

if ($user) { // if user exists

if ($user['email'] === $email) {
array_push($errors, "email already exists");
}
}

else
{

$sql = "UPDATE `users` SET `first_name` = '$first_name' ,'last_name'='$last_name', 'password'='$password',
'email'='$email', 'gender'='$gender', 'designation_id'='$designation_id','address'='$address' WHERE `users`.`id` = '$id'";

if (mysqli_query($db, $sql)) {
mysqli_close($db);
header('Location: index.php');
exit;
} else {
echo "Error deleting record";
}
}

}


?>





share|improve this answer


























  • please add what you update in code and why should try this code?

    – Bhargav Chudasama
    Nov 20 '18 at 5:36













  • where it is value not assign properly?

    – Bhargav Chudasama
    Nov 20 '18 at 5:37











  • if $_POST['reg_user'] return empty OR $_GET['id'] value empty it's not process the update query.

    – VinothRaja
    Nov 20 '18 at 5:41











  • same bro...echoing error deleting record

    – mahesh
    Nov 20 '18 at 5:42











  • $id echoing...so no problem with $_GET['id']

    – mahesh
    Nov 20 '18 at 5:44











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53386699%2fediting-row-data%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














please try this updated code.May be the issue reason is value not assign properly. So that it's moved else part. Now i have moved the update query inside the POST Check value.



<?php
//$id = $_GET['id'];
$id = isset($_GET['id']) ? $_GET['id'] : '';
$db = mysqli_connect('localhost', 'root', '', 'ems');
if (!$db) {
die("Connection failed: " . mysqli_connect_error());
}
$first_name = "";
$last_name = "";
//$mobile = "";
$email = "";
$gender = "";
$designation_id = "";
$address = "";
$errors = array();

if (isset($_POST['reg_user']) && $id!='') {
$first_name = mysqli_real_escape_string($db, $_POST['first_name']);
$last_name = mysqli_real_escape_string($db, $_POST['last_name']);
//$mobile = mysqli_real_escape_string($db, $_POST['mobile']);
$password = mysqli_real_escape_string($db, $_POST['password']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$gender = mysqli_real_escape_string($db, $_POST['gender']);
$designation_id = mysqli_real_escape_string($db, $_POST['designation_id']);
$address = mysqli_real_escape_string($db, $_POST['address']);
$user_check_query = "SELECT * FROM users WHERE email='$email' LIMIT 1";
$result = mysqli_query($db, $user_check_query);
$user = mysqli_fetch_assoc($result);

if ($user) { // if user exists

if ($user['email'] === $email) {
array_push($errors, "email already exists");
}
}

else
{

$sql = "UPDATE `users` SET `first_name` = '$first_name' ,'last_name'='$last_name', 'password'='$password',
'email'='$email', 'gender'='$gender', 'designation_id'='$designation_id','address'='$address' WHERE `users`.`id` = '$id'";

if (mysqli_query($db, $sql)) {
mysqli_close($db);
header('Location: index.php');
exit;
} else {
echo "Error deleting record";
}
}

}


?>





share|improve this answer


























  • please add what you update in code and why should try this code?

    – Bhargav Chudasama
    Nov 20 '18 at 5:36













  • where it is value not assign properly?

    – Bhargav Chudasama
    Nov 20 '18 at 5:37











  • if $_POST['reg_user'] return empty OR $_GET['id'] value empty it's not process the update query.

    – VinothRaja
    Nov 20 '18 at 5:41











  • same bro...echoing error deleting record

    – mahesh
    Nov 20 '18 at 5:42











  • $id echoing...so no problem with $_GET['id']

    – mahesh
    Nov 20 '18 at 5:44
















0














please try this updated code.May be the issue reason is value not assign properly. So that it's moved else part. Now i have moved the update query inside the POST Check value.



<?php
//$id = $_GET['id'];
$id = isset($_GET['id']) ? $_GET['id'] : '';
$db = mysqli_connect('localhost', 'root', '', 'ems');
if (!$db) {
die("Connection failed: " . mysqli_connect_error());
}
$first_name = "";
$last_name = "";
//$mobile = "";
$email = "";
$gender = "";
$designation_id = "";
$address = "";
$errors = array();

if (isset($_POST['reg_user']) && $id!='') {
$first_name = mysqli_real_escape_string($db, $_POST['first_name']);
$last_name = mysqli_real_escape_string($db, $_POST['last_name']);
//$mobile = mysqli_real_escape_string($db, $_POST['mobile']);
$password = mysqli_real_escape_string($db, $_POST['password']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$gender = mysqli_real_escape_string($db, $_POST['gender']);
$designation_id = mysqli_real_escape_string($db, $_POST['designation_id']);
$address = mysqli_real_escape_string($db, $_POST['address']);
$user_check_query = "SELECT * FROM users WHERE email='$email' LIMIT 1";
$result = mysqli_query($db, $user_check_query);
$user = mysqli_fetch_assoc($result);

if ($user) { // if user exists

if ($user['email'] === $email) {
array_push($errors, "email already exists");
}
}

else
{

$sql = "UPDATE `users` SET `first_name` = '$first_name' ,'last_name'='$last_name', 'password'='$password',
'email'='$email', 'gender'='$gender', 'designation_id'='$designation_id','address'='$address' WHERE `users`.`id` = '$id'";

if (mysqli_query($db, $sql)) {
mysqli_close($db);
header('Location: index.php');
exit;
} else {
echo "Error deleting record";
}
}

}


?>





share|improve this answer


























  • please add what you update in code and why should try this code?

    – Bhargav Chudasama
    Nov 20 '18 at 5:36













  • where it is value not assign properly?

    – Bhargav Chudasama
    Nov 20 '18 at 5:37











  • if $_POST['reg_user'] return empty OR $_GET['id'] value empty it's not process the update query.

    – VinothRaja
    Nov 20 '18 at 5:41











  • same bro...echoing error deleting record

    – mahesh
    Nov 20 '18 at 5:42











  • $id echoing...so no problem with $_GET['id']

    – mahesh
    Nov 20 '18 at 5:44














0












0








0







please try this updated code.May be the issue reason is value not assign properly. So that it's moved else part. Now i have moved the update query inside the POST Check value.



<?php
//$id = $_GET['id'];
$id = isset($_GET['id']) ? $_GET['id'] : '';
$db = mysqli_connect('localhost', 'root', '', 'ems');
if (!$db) {
die("Connection failed: " . mysqli_connect_error());
}
$first_name = "";
$last_name = "";
//$mobile = "";
$email = "";
$gender = "";
$designation_id = "";
$address = "";
$errors = array();

if (isset($_POST['reg_user']) && $id!='') {
$first_name = mysqli_real_escape_string($db, $_POST['first_name']);
$last_name = mysqli_real_escape_string($db, $_POST['last_name']);
//$mobile = mysqli_real_escape_string($db, $_POST['mobile']);
$password = mysqli_real_escape_string($db, $_POST['password']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$gender = mysqli_real_escape_string($db, $_POST['gender']);
$designation_id = mysqli_real_escape_string($db, $_POST['designation_id']);
$address = mysqli_real_escape_string($db, $_POST['address']);
$user_check_query = "SELECT * FROM users WHERE email='$email' LIMIT 1";
$result = mysqli_query($db, $user_check_query);
$user = mysqli_fetch_assoc($result);

if ($user) { // if user exists

if ($user['email'] === $email) {
array_push($errors, "email already exists");
}
}

else
{

$sql = "UPDATE `users` SET `first_name` = '$first_name' ,'last_name'='$last_name', 'password'='$password',
'email'='$email', 'gender'='$gender', 'designation_id'='$designation_id','address'='$address' WHERE `users`.`id` = '$id'";

if (mysqli_query($db, $sql)) {
mysqli_close($db);
header('Location: index.php');
exit;
} else {
echo "Error deleting record";
}
}

}


?>





share|improve this answer















please try this updated code.May be the issue reason is value not assign properly. So that it's moved else part. Now i have moved the update query inside the POST Check value.



<?php
//$id = $_GET['id'];
$id = isset($_GET['id']) ? $_GET['id'] : '';
$db = mysqli_connect('localhost', 'root', '', 'ems');
if (!$db) {
die("Connection failed: " . mysqli_connect_error());
}
$first_name = "";
$last_name = "";
//$mobile = "";
$email = "";
$gender = "";
$designation_id = "";
$address = "";
$errors = array();

if (isset($_POST['reg_user']) && $id!='') {
$first_name = mysqli_real_escape_string($db, $_POST['first_name']);
$last_name = mysqli_real_escape_string($db, $_POST['last_name']);
//$mobile = mysqli_real_escape_string($db, $_POST['mobile']);
$password = mysqli_real_escape_string($db, $_POST['password']);
$email = mysqli_real_escape_string($db, $_POST['email']);
$gender = mysqli_real_escape_string($db, $_POST['gender']);
$designation_id = mysqli_real_escape_string($db, $_POST['designation_id']);
$address = mysqli_real_escape_string($db, $_POST['address']);
$user_check_query = "SELECT * FROM users WHERE email='$email' LIMIT 1";
$result = mysqli_query($db, $user_check_query);
$user = mysqli_fetch_assoc($result);

if ($user) { // if user exists

if ($user['email'] === $email) {
array_push($errors, "email already exists");
}
}

else
{

$sql = "UPDATE `users` SET `first_name` = '$first_name' ,'last_name'='$last_name', 'password'='$password',
'email'='$email', 'gender'='$gender', 'designation_id'='$designation_id','address'='$address' WHERE `users`.`id` = '$id'";

if (mysqli_query($db, $sql)) {
mysqli_close($db);
header('Location: index.php');
exit;
} else {
echo "Error deleting record";
}
}

}


?>






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 20 '18 at 5:37

























answered Nov 20 '18 at 5:35









VinothRajaVinothRaja

1,045416




1,045416













  • please add what you update in code and why should try this code?

    – Bhargav Chudasama
    Nov 20 '18 at 5:36













  • where it is value not assign properly?

    – Bhargav Chudasama
    Nov 20 '18 at 5:37











  • if $_POST['reg_user'] return empty OR $_GET['id'] value empty it's not process the update query.

    – VinothRaja
    Nov 20 '18 at 5:41











  • same bro...echoing error deleting record

    – mahesh
    Nov 20 '18 at 5:42











  • $id echoing...so no problem with $_GET['id']

    – mahesh
    Nov 20 '18 at 5:44



















  • please add what you update in code and why should try this code?

    – Bhargav Chudasama
    Nov 20 '18 at 5:36













  • where it is value not assign properly?

    – Bhargav Chudasama
    Nov 20 '18 at 5:37











  • if $_POST['reg_user'] return empty OR $_GET['id'] value empty it's not process the update query.

    – VinothRaja
    Nov 20 '18 at 5:41











  • same bro...echoing error deleting record

    – mahesh
    Nov 20 '18 at 5:42











  • $id echoing...so no problem with $_GET['id']

    – mahesh
    Nov 20 '18 at 5:44

















please add what you update in code and why should try this code?

– Bhargav Chudasama
Nov 20 '18 at 5:36







please add what you update in code and why should try this code?

– Bhargav Chudasama
Nov 20 '18 at 5:36















where it is value not assign properly?

– Bhargav Chudasama
Nov 20 '18 at 5:37





where it is value not assign properly?

– Bhargav Chudasama
Nov 20 '18 at 5:37













if $_POST['reg_user'] return empty OR $_GET['id'] value empty it's not process the update query.

– VinothRaja
Nov 20 '18 at 5:41





if $_POST['reg_user'] return empty OR $_GET['id'] value empty it's not process the update query.

– VinothRaja
Nov 20 '18 at 5:41













same bro...echoing error deleting record

– mahesh
Nov 20 '18 at 5:42





same bro...echoing error deleting record

– mahesh
Nov 20 '18 at 5:42













$id echoing...so no problem with $_GET['id']

– mahesh
Nov 20 '18 at 5:44





$id echoing...so no problem with $_GET['id']

– mahesh
Nov 20 '18 at 5:44


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53386699%2fediting-row-data%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

Npm cannot find a required file even through it is in the searched directory