hi guys im trying to create a javascript prompt that will ask the user to confirm or cancel the delete command
below is my code
i cant seem to get it to work
[php]<?php
ob_start();
include(‘connectdb.php’);
?>
<title>Student List</title>
<?php
/*
VIEW.PHP
Displays all data from 'students' table
*/
// get results from database
$result = mysql_query("SELECT * FROM students ORDER BY lname ASC")
or die(mysql_error());
// display data in table
echo "STUDENT LIST "; echo "
Student Number | Student Name | Level | Eligible for next School Year | Enrollment Status | ||
---|---|---|---|---|---|---|
' . $row['stud_no'] . ' | '; echo '' . $row['lname'] . ", " . $row['fname'] . " " . $row['mname'] . ' | '; echo '' . $row['level'] . ' | '; echo '' . $row['eligible'] . ' | '; echo '' . $row['estatus'] . ' | '; echo 'Edit | '; echo 'Delete | '; echo "
Return to Admin Main Page [/php]
the red text is the one im having problems on
what happens is the data automatically deletes the file from the database without the javascript prompt showing
help guise im lost
thx for replies