Jump to content

[SOLVED] Error : nexpected T_AS


logicopinion

Recommended Posts

whats wrong ?

 

 

 

 


<?php
echo "<pre>".var_export($_POST, true)."</pre>";
die(); 
mysql_connect("localhost", "root", "") or die ("Could not connect");
mysql_select_db("db1") or die ("Could not connect to DB");

if ($_POST['delete'])

{

$deleteID = $_POST['delete'];

foeach($_POST["delete"] as $key => $id)

{


mysql_query("DELETE FROM dbtable WHERE id='".(int)$id."'") or die(mysql_error());

echo "The Row Number ".(int)$id." has been Successfully Removed";

} 
}
else 

{ 

echo "please select at least one row, to delete it";

}

?>


 

 

 

 

 

Thank You :)

Link to comment
https://forums.phpfreaks.com/topic/72641-solved-error-nexpected-t_as/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.