Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [PHP & MySQL] PHP Problem [Newssystem] (https://www.gegen-bilderklau.net/thread.php?threadid=132668)


Geschrieben von Laser Radial Girl am 23.04.2008 um 15:29:

  PHP Problem [Newssystem]

Hallo ihr,

Ich hab mich mit nem Tut an nem Newssystem gemacht allerdings bekomm ich egal welche Seite ich aufrufe bekomme ich folgende Fehlermeldung:

Warning: require_once(Connections/blog.php) [function.require-once]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/mydream/Connections/add.php on line 1

Fatal error: require_once() [function.require]: Failed opening required 'Connections/blog.php' (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/mydream/Connections/add.php on line 1



Hier die beiden Quellcodes
blog.php:
php:
1:
<?php# FileName="Connection_php_mysql.htm"# Type="MYSQL"# HTTP="true"$hostname_blog = "localhost";$database_blog = "mydream_02";$username_blog = "mydream_02";$password_blog = "1de23rtf";$blog = mysql_pconnect($hostname_blog, $username_blog, $password_blog) or die(mysql_error());?>

add.php
php:
1:
<?php require_once('Connections/blog.php'); ?>< ?phpfunction GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""){$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;switch ($theType) {case "text":$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";break;case "long":case "int":$theValue = ($theValue != "") ? intval($theValue) : "NULL";break;case "double":$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";break;case "date":$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";break;case "defined":$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;break;}return $theValue;}$editFormAction = $HTTP_SERVER_VARS['PHP_SELF'];if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {$editFormAction .= "?" . $HTTP_SERVER_VARS['QUERY_STRING'];}if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == "news-add")) {$insertSQL = sprintf("INSERT INTO blog (ID, title, name, email, `date`, icon, entry) VALUES (%s, %s, %s, %s, %s, %s, %s)",GetSQLValueString($HTTP_POST_VARS['hiddenFieldID'], "int"),GetSQLValueString($HTTP_POST_VARS['textfieldTitel'], "text"),GetSQLValueString($HTTP_POST_VARS['textfieldName'], "text"),GetSQLValueString($HTTP_POST_VARS['textfieldName'], "text"),GetSQLValueString($HTTP_POST_VARS['textfieldDatum'], "date"),GetSQLValueString($HTTP_POST_VARS['textfieldIcon'], "text"),GetSQLValueString($HTTP_POST_VARS['textarea'], "text"));mysql_select_db($database_blog, $blog);$Result1 = mysql_query($insertSQL, $blog) or die(mysql_error());$insertGoTo = "list.php";if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";$insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];}header(sprintf("Location: %s", $insertGoTo));}$colname_rsBlog = "1";if (isset($HTTP_GET_VARS['recordID'])) {$colname_rsBlog = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['recordID'] : addslashes($HTTP_GET_VARS['recordID']);}mysql_select_db($database_blog, $blog);$query_rsBlog = sprintf("SELECT * FROM blog WHERE ID = %s", $colname_rsBlog);$rsBlog = mysql_query($query_rsBlog, $blog) or die(mysql_error());$row_rsBlog = mysql_fetch_assoc($rsBlog);$totalRows_rsBlog = mysql_num_rows($rsBlog);?>< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">< html>< head>< title>Untitled Document</title>< meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">< /head><body>< p>Add</p>< form name="news-add" method="POST" action="<?php echo $editFormAction?>">< table width="100%" border="0"><tr><td><input type="hidden" name="hiddenFieldID"></td><td>&nbsp;</td></tr><tr><td height="25">Name:</td><td><input type="text" name="textfieldName"></td></tr><tr><td>eMail:</td><td><input type="text" name="textfieldEmail"></td></tr><tr><td>Datum:</td><td><input type="text" name="textfieldDatum">(so Eintippen: jjjj-mm-tt)</td></tr><tr><td>Titel:</td><td><input type="text" name="textfieldTitel"></td></tr><tr><td>Icon:</td><td><input type="text" name="textfieldIcon"></td></tr><tr><td>Entry:</td><td><textarea name="textarea" cols="35" rows="5"></textarea></td></tr><tr><td><input type="submit" name="Submit" value="Submit"></td><td><input type="reset" name="Submit2" value="Reset"></td></tr>< /table>< input type="hidden" name="MM_insert" value="news-add">< /form>< p>&nbsp; </p>< /body>< /html>< ?phpmysql_free_result($rsBlog);?>



Geschrieben von Laser Radial Girl am 23.04.2008 um 19:39:

 

Jaa ist in dem Ordner.


Forensoftware: Burning Board, entwickelt von WoltLab GmbH