Jump to content

Unknown Parse error in code


Jurik

Recommended Posts

Hey guys was wondering if you could help me again, I have been helped out with a peice of code but when it come to running it in IE I get a parse error, I always thought parse errors occurered because a , or { was missing but ive checked my code and none of these are missing can u help me find the parse error? Heres the code it reporting that the parse error is on the line where the while statement starts, if I put a ; at the end of it tho the error moves up a line, any ideas?

[code=php:0]<?php

if (isset($_GET['ID'])) {
  $vidID = $_GET['ID'];
} else {
  $vidID = NULL;
}
$query = "SELECT * FROM videos WHERE ID = ('$vidID')";
$result=mysql_query($query);
while($row=mysql_fetch_array($result)
{
  extract($row);
  unlink($Videofile);
}

$query2 = "DELETE FROM videos WHERE ID = ('$vidID')";
$result2 = mysql_query($query2);


echo "The video has been deleted.";

?>[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.