Good morning, all!
As the title suggests, I am having a syntax error. I'm using Notepad++, and I don't seem to be missing any curly braces.
Is there somthing else I'm missing?
Thank you
<?php
session_start();
include('header.php');
if((isset($_GET['movie_users_id'])) && (is_numeric($_GET['movie_users_id']))) {
$movie_users_id = $_GET['movie_users_id'];
} elseif
((isset($_POST['movie_users_id'])) && (is_numeric($_POST['movie_users_id']))){
$movie_users_id = $_POST['movie_users_id'];
} else {
header("Refresh: 3;URL=current_users.php");
echo "This page has been accessed in error. Redirecting you to the previous page";
}
require_once('mysql_connect');
if($_POST['sure'] == 'Yes') {
$query = "delete from movie_users where movie_users_id = $movie_users_id";
$result = @mysql_query($query);
}
$query = "select concat(last_name, ',' first_name) from movie_users where movie_users_id = $movie_users_id";
$result = @mysql_query($query);
if (mysql_num_rows($result) == 1) {
$row = mysql_fetch_array($result, MYSQL_NUM);
?>
<body>
<form action="delete_user.php" method ="post">
<div id="main">
<p>Are you sure you want to delet this user?<br />
<input type = "radio" name = "sure" value = "Yes" /> Yes
<input type = "radio" name = "sure" value = "No" /> No</p>
<p><input type = "submit" name = "submit" value = "Submit" /> </p>
<input type = "hidden" name = "submitted" value = "TRUE" />
<input type = "hidden" name = "movie_users_id" value = "' . $movie_users_id . '" />
</form>
</body>
</div>
mysql_close();
<?php
include('footer.php');
?>