Post-it habli.ch
// *************************************************************************************************
// Konfigurations-Datei einlesen
// *************************************************************************************************
include "config.php";
// *************************************************************************************************
// Verbinden zur MySQL-Datenbank
// *************************************************************************************************
mysql_connect($sqlhostname,$sqlusername,$sqlpassword) or die("Keine Verbindung zur Datenbank möglich");
// *************************************************************************************************
// Datensatz löschen, falls dazu aufgefordert
// *************************************************************************************************
if ( $del = "ja" ) {
$delrecord = "DELETE FROM db1870701.medizin_post_it WHERE (timestamp = '$deltimestamp')";
mysql_query ($delrecord );
$del = "nein";
}
// *************************************************************************************************
// Datensatz schreiben, falls dazu aufgefordert
// *************************************************************************************************
$newdatum = date ("Ymd");
$newtimestamp = date ("d.m.Y_G:i:s");
if ( $newsubject != "" ) {
$newrecord = "INSERT INTO db1870701.medizin_post_it VALUES ('$newdatum', '$newsubject', '$newtext', '$newtimestamp')" ;
mysql_query ($newrecord );
$newsubject = "";
$newtext = "";
$newdatum = "";
}
// *************************************************************************************************
// Zeige alle Links an
// *************************************************************************************************
?>
if( $grau != "N" )
{
$color = "#cccccc";
$grau = "N" ;
}
else
{
$color = "#aaaaaa";
$grau = "J" ;
}
?>
subject?>
|
text?>
|
delete
|