U have any prior knowledge?
Could you please explain it?
Do you know any way to secure the code?
Do you need any help ?
Any opening there ?
Could anyone indicate any?
Do you have a dedicated hosting server?
Yes Sr i want to become A devloper…….
I cant understand, please explain
U have any prior knowledge?
Yess Sr I have basically Knowledge of Fundamentals and php….java script.
Then practice, become pro and get certified,, apply for php developers job
Yes
HTML+ CSS+ PHP+ MYSQLi……❓❓
HTML+ CSS+ PHP+ MYSQLi……❓❓
Everything
Exactly I want to know that
Use jquery (#mydiv).reload
Could you please explain it?
I have this function that is common to any CRUD.
function delUser(userID){
alertify.confirm(‘DELETE USER’, ‘Do you want delete this user?’, function(){
$.ajax({
type:”POST”,
data:”userID=” + userID,
url:”delete.php”,
success:function(r){
if(r==1){
$(‘#tablaDatatable’).load(‘index.php’);
alertify.success(“Delete success !”);
}else{
alertify.error(“Error deleting…”);
}
}
});
}
, function(){
});
If I execute the function from the console:
delUser(32)
If the record 32 exists in the database, it simply deletes it! Do you know any way to secure the code?
I have this function that is common to any CRUD.
function delUser(userID){
alertify.confirm(‘DELETE USER’, ‘Do you want delete this user?’, function(){
$.ajax({
type:”POST”,
data:”userID=” + userID,
url:”delete.php”,
success:function(r){
if(r==1){
$(‘#tablaDatatable’).load(‘index.php’);
alertify.success(“Delete success !”);
}else{
alertify.error(“Error deleting…”);
}
}
});
}
, function(){
});
If I execute the function from the console:
delUser(32)
If the record 32 exists in the database, it simply deletes it! Do you know any way to secure the code?
By checking if the user is logged in
Developer ?
I have this function that is common to any CRUD.
function delUser(userID){
alertify.confirm(‘DELETE USER’, ‘Do you want delete this user?’, function(){
$.ajax({
type:”POST”,
data:”userID=” + userID,
url:”delete.php”,
success:function(r){
if(r==1){
$(‘#tablaDatatable’).load(‘index.php’);
alertify.success(“Delete success !”);
}else{
alertify.error(“Error deleting…”);
}
}
});
}
, function(){
});
If I execute the function from the console:
delUser(32)
If the record 32 exists in the database, it simply deletes it! Do you know any way to secure the code?
Use CSRF Token
I have this function that is common to any CRUD.
function delUser(userID){
alertify.confirm(‘DELETE USER’, ‘Do you want delete this user?’, function(){
$.ajax({
type:”POST”,
data:”userID=” + userID,
url:”delete.php”,
success:function(r){
if(r==1){
$(‘#tablaDatatable’).load(‘index.php’);
alertify.success(“Delete success !”);
}else{
alertify.error(“Error deleting…”);
}
}
});
}
, function(){
});
If I execute the function from the console:
delUser(32)
If the record 32 exists in the database, it simply deletes it! Do you know any way to secure the code?
what do u want to secure
Yes, pm me
The function (or method) delUser().
Yes, I do that. But any “registered” user also has to make changes in the DB using the browser console and that is what I try to avoid.
Do you have a dedicated hosting server?
I think it could be a solution, but … Would you have some basic example to get a better idea of how to implement it?
https://my.fastsms.co.uk/
if yes please help me config my on my server its not working
CSRF is used for front end and back end