View Single Post
  #1  
Old 05-07-2012, 03:45 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 85,620
SilverDragonTears is on a distinguished road
Default Delete query deletes from all usesrs

Why does this
Code:
function getdeltabs() {
$formcontent = "";

$result = $GLOBALS['adopts']->select("tabs", array("username", "name"), "username = '".$GLOBALS['username']."'");

	while ($row = $result->fetchObject()) {
		$tabname=$row->name; 
		$formcontent = $formcontent."<option value='".$tabname."'>".$tabname."</option>";
		$i++;
	}
	return $formcontent;
}
delete all the users tabs when one person deletes a single tab?
__________________

Check out SilvaTales
Reply With Quote