//MySQL Database variables
$hostname_MySQL = "localhost";
//Establish the connection
$connection_MySQL = mysql_pconnect($hostname_MySQL, $username_MySQL, $password_MySQL) or die(mysql_error());
//Select the database
mysql_select_db($database_MySQL);
//------------------------------
$colname_rsArticle = "-1";
if (isset($_GET['entity_id'])) {
$colname_rsArticle = (get_magic_quotes_gpc()) ? $_GET['entity_id'] : addslashes($_GET['entity_id']);
}
$sql = sprintf("SELECT object, attribute, value FROM system_t WHERE object = %s", $colname_rsArticle);
$sql = "SELECT object, attribute, value FROM system_t WHERE object='Operation.'";
//Run the query.
$result_set = mysql_query($sql,$connection_MySQL) or die(mysql_error());
//--------------------------
//Now back to the HTML.
//If anything goes wrong above, this won't get outputted, so we can safely assume all is well
?>
//
entity.php
Vr.151, Jan 2005, Oliver Bromley, obromley@hotmail.com