Jump to content

Syntax error unexpected T_String


acctman

Recommended Posts

this is the complete section of coding. still getting an error.

 

$ip = getenv("REMOTE_ADDR");

if(!isset($_POST['del_acct'])) {
if($_POST['ban'] == 1) {	
	delete_record($_POST['id'])		
	mysql_query("UPDATE rate_members SET m_ip='$ip', m_del_rd='NOW()', m_del_type='1' WHERE m_id={$_POST['id']}");
}
	header("Location: /files/acct-removed.php");
	session_destroy();
	exit;
}

oh i see my error its the function

 

delete_record($_POST['id'])

 

should me

delete_record($_POST['id']);

 

complete fix... how does that look?

$ip = getenv("REMOTE_ADDR");

if(!isset($_POST['del_acct'])) {
if($_POST['ban'] == 1) {	
	delete_record($_POST['id']);		
	mysql_query("UPDATE rate_members SET m_ip='$ip', m_del_rd='NOW()', m_del_type=1 WHERE m_id={$_POST['id']}");
}
	header("Location: /files/acct-removed.php");
	session_destroy();
	exit;
}

What exactly does the error say, specifically line #?

 

I didn't run the script since its designed to delete accounts. i wrote it inside phpDesigner and it highlighted that line with the error.

 

So why didn't you show us that line from the beginning?

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.