aquasonic
Jun 3rd 2008, 1:42 am
Hi,
I'm trying to add a delete button to a page so that the row can be deleted but I'm getting the following error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/fhlinux159/w/w-a-a.co.uk/user/htdocs/new_site/indexu.php on line 58
<?php
while($secinfo = mysql_fetch_array( $secdata ))
{
echo "<hr width='100%'>";
echo "<h1>" . $secinfo['Event_Title'] . " <sub>" . $secinfo['Show_Type'] . "</sub></h1>";
echo "<h1><sup><i> " . $secinfo['Date'] . " " . $secinfo['Time'] . "</i></sup></h1>";
echo "<p>" . $secinfo['Synopsis'] . "</p>";
echo "<p>" . $secinfo['Box_Office'] . "</p>";
echo "<p><button onclick=" . DELETE FROM FrontPage WHERE Event_UID = $secinfo['Event_UID']; . ">DELETE THIS EVENT</button></p>";
}
?>
Line 58 is the line with the button on it... what am I doing wrong? It's driving me mad!
I'm trying to add a delete button to a page so that the row can be deleted but I'm getting the following error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/fhlinux159/w/w-a-a.co.uk/user/htdocs/new_site/indexu.php on line 58
<?php
while($secinfo = mysql_fetch_array( $secdata ))
{
echo "<hr width='100%'>";
echo "<h1>" . $secinfo['Event_Title'] . " <sub>" . $secinfo['Show_Type'] . "</sub></h1>";
echo "<h1><sup><i> " . $secinfo['Date'] . " " . $secinfo['Time'] . "</i></sup></h1>";
echo "<p>" . $secinfo['Synopsis'] . "</p>";
echo "<p>" . $secinfo['Box_Office'] . "</p>";
echo "<p><button onclick=" . DELETE FROM FrontPage WHERE Event_UID = $secinfo['Event_UID']; . ">DELETE THIS EVENT</button></p>";
}
?>
Line 58 is the line with the button on it... what am I doing wrong? It's driving me mad!