Version 2
This commit is contained in:
32
files/ezine_db0.inc.php
Normal file
32
files/ezine_db0.inc.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
function ezine_mysql_die($error = "")
|
||||
{
|
||||
if (empty($error))
|
||||
{
|
||||
|
||||
$mysqlError = mysql_error();
|
||||
if (!empty($mysqlError))
|
||||
{
|
||||
echo "SQL server reply: ".$mysqlError;
|
||||
}
|
||||
}
|
||||
else
|
||||
echo "SQL server reply: ".$error;
|
||||
echo "<br>Leider nein, leider gar nicht!";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ezine_connecte_db()
|
||||
{
|
||||
// Server connection parameter
|
||||
require "ezine.conf.php";
|
||||
|
||||
$db = mysql_connect($host,$login,$password) or ezine_mysql_die();
|
||||
mysql_select_db($base);
|
||||
return $db;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user