Location: PHPKode > projects > NetLink > netlink_os/update_css_temp.php
<?php
$login=$_SESSION['login'];

include("db.php");

$dbh=mysql_connect ($host,$user,$pass) or die ('MySQL Error: ' . mysql_error());
mysql_select_db ($table); 
echo "Changing $div to the <span style='color:$select_box; font-weight:bold;'>$select_box</span> setting....\n<br/>\n<br/>\n";
$select_box=substr($select_box, 1);
$sql_text="UPDATE CSS_TEMP SET $div='$select_box' WHERE Username='$login'";
$rs_text=mysql_query($sql_text,$dbh);

  echo "CSS Custom Theme Updated for $login\n";
  echo "<br/><br/>\n";
  echo "<a href='?id=edit_css'>Back to $login's CSS Themer</a>";
	echo "<meta http-equiv='refresh' content='0;URL=?id=edit_css'>";

mysql_close($dbh);
?>
Return current item: NetLink