Fatal error: Call to undefined function virtual() in /srv/www/d/dsahin/restaurant-italo.at/index.php on line 1
ich habe diesen fehler: ich zeige euch mal den code:
1<?php virtual('/Connections/News.php'); ?> hier ist der fehler aber die news.php hatt die richtigen zugangsdaten
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($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;
}
}
mysql_select_db($database_News, $News);
$query_News = "SELECT * FROM news ORDER BY id ASC";
$News = mysql_query($query_News, $News) or die(mysql_error());
$row_News = mysql_fetch_assoc($News);
$totalRows_News = mysql_num_rows($News);
?>
dann kommt html code
kann mir einer vlt helfen bitte
ich habe keine ahnung der code müsste richtig sein?
ich habe diesen fehler: ich zeige euch mal den code:
1<?php virtual('/Connections/News.php'); ?> hier ist der fehler aber die news.php hatt die richtigen zugangsdaten
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($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;
}
}
mysql_select_db($database_News, $News);
$query_News = "SELECT * FROM news ORDER BY id ASC";
$News = mysql_query($query_News, $News) or die(mysql_error());
$row_News = mysql_fetch_assoc($News);
$totalRows_News = mysql_num_rows($News);
?>
dann kommt html code
kann mir einer vlt helfen bitte
ich habe keine ahnung der code müsste richtig sein?
Kommentar