ich habe dieser script um zu prüfen ob Verbindung zum Datenbank habe,
<?php
$connection = mysql_connect("localhost", "root", "pass"); // Establishing Connection with Server
$db = mysql_select_db("meine", $connection); // Selecting Database from Server
if(isset($_POST['submit'])){ // Fetching variables of the form which travels in URL
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$datatime = $DateTime;
$ips = $ips;
if($name !=''||$email !=''){
//Insert Query of SQL
$query = mysql_query("insert into mela(name, email, message, datetime, ips) values ('$name', '$email', '$message', '$datatime, '$ips')");
echo "<br/><br/><span>Data Inserted successfully...!!</span>";
}
else{
echo "<p>Insertion Failed <br/> Some Fields are Blank....!!</p>";
}
}
mysql_close($connection); // Closing Connection with Server
?>
Der Datei heißt connection.php , wenn schreibe auf dem Brownser , wird nichts passiert ...