Jump to content

[SOLVED] duplicate entries in array ?!


work_it_work

Recommended Posts

thank you thank you thank you!!!!

 

it worked, and it worked fine.... this arrays are magic if u know how to use them

 

this time prevented to insert duplicate entries in database fields :D

 

	$gg = implode(",", $_POST['opt']);
	if ($gg[0] == ",") $gg= substr($gg, 1);
	$tt = array($gg);
	$ttu = array_unique($tt);
	$ggtt = implode(",", $ttu);

$sql_insert_item = $this->query("UPDATE " . DB_PREFIX . "users_details SET  a='" . $ggtt . "'

thanks redarrow!!!

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.