Location: PHPKode > projects > NetLink > netlink_os/css_reset.php
<?php
	include("db.php");
	$dbh=mysql_connect ($host,$account,$acc_pw) or die (mysql_error());
	mysql_select_db ($table); 
$user=$_SESSION['login'];
$sql="SELECT * FROM CSS WHERE Username='$user'";
$rs=mysql_query($sql,$dbh);
		$row=mysql_fetch_array($rs);
		$text=$row['text'];
		$background=$row['background'];
		$activelink=$row['activelink'];
		$link=$row['link'];
		$vlink=$row['vlink'];
		$h1=$row['h1'];
		$h2=$row['h2'];
		
		
		$sql="UPDATE CSS_TEMP SET text='$text' WHERE Username='$user'";
		$update=mysql_query($sql,$dbh);
		$sql="UPDATE CSS_TEMP SET background='$background' WHERE Username='$user'";
		$update=mysql_query($sql,$dbh);
		$sql="UPDATE CSS_TEMP SET activelink='$activelink' WHERE Username='$user'";
		$update=mysql_query($sql,$dbh);
		$sql="UPDATE CSS_TEMP SET link='$link' WHERE Username='$user'";
		$update=mysql_query($sql,$dbh);
		$sql="UPDATE CSS_TEMP SET vlink='$vlink' WHERE Username='$user'";
		$update=mysql_query($sql,$dbh);
		$sql="UPDATE CSS_TEMP SET h1='$h1' WHERE Username='$user'";
		$update=mysql_query($sql,$dbh);
		$sql="UPDATE CSS_TEMP SET h2='$h2' WHERE Username='$user'";
		$update=mysql_query($sql,$dbh);
echo "Resetting to old CSS Profile standards....";
echo "<meta http-equiv='refresh' content='0;URL=?id=profile'>";
?>
Return current item: NetLink