Hi all! I'm not a very good coder and i'm down here with a question for you all.
Firstly, is it possible to code php within javascript?
How?
function confirmation() {
var answer = confirm("Delete class?")
if (answer){
window.location = "deleteClass.php?id=<?php echo $row['idClass'];?>";
}
else{
alert("Delete unsuccessful!")
}
}
i'm unable to fetch the data using get function on the other page.
Your help is greatly appreciated.