Jump to content

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?

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.