 |
Medlem
|
|
Reg.datum: Aug 2009
Inlägg: 57
|
|
Medlem
Reg.datum: Aug 2009
Inlägg: 57
|
det finns inte file med namnet confiq.php eller conn.php. Det finns dbConn.php och den innehåller de här koder:
<?php
mysql_connect("localhost", "gc", "windows123");
mysql_select_db("party") or die(mysql_error());
function db_escape ($post)
{
if (is_string($post)) {
if (get_magic_quotes_gpc()) {
$post = stripslashes($post);
}
return mysql_real_escape_string($post);
}
foreach ($post as $key => $val) {
$post[$key] = db_escape($val);
}
return $post;
}
?>
|