Estoy realizando un buscador utilizando PHP y MySQL junto a la ayuda de la interfaz de Dreamweaver.
Lo hago mediante la ayuda de un juego de registro [Consulta] y cuando introduzco ahí todos los datos y realizo una prueba va bien, pero una vez que acepto e inserto los datos dinámicos en una tabla dinámica y abro el firefox para la vista previa me sale el siguiente error al realizar cualquier búsqueda:
Warning: require_once(Connections/lugointernet.php) [function.require-once]: failed to open stream: No such file or directory in /home/khylenes/public_html/resultados2.php on line 1
Fatal error: require_once() [function.require]: Failed opening required 'Connections/lugointernet.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/khylenes/public_html/resultados2.php on line 1
Me sale que tengo error en la linea 1, este es el código:
Código PHP :
<?php require_once('Connections/lugointernet.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$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;
}
}
$colname_Recordset1 = "-1";
if (isset($_GET['Empresa'])) {
$colname_Recordset1 = $_GET['Empresa'];
}
mysql_select_db($database_lugointernet, $lugointernet);
$query_Recordset1 = sprintf("SELECT * FROM Quality WHERE Empresa = %s", GetSQLValueString($colname_Recordset1, "text"));
$Recordset1 = mysql_query($query_Recordset1, $lugointernet) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>
<p>RESULTADO BUSQUEDA</p>
<p> </p>
<p> </p>
<table border="1">
<tr>
<td>ID</td>
<td>Raza</td>
<td>País</td>
<td>Tamaño</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['ID']; ?></td>
<td><?php echo $row_Recordset1['Raza]; ?></td>
<td><?php echo $row_Recordset1['País']; ?></td>
<td><?php echo $row_Recordset1['Tamaño']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>¿Alguien podría iluminarme un poco porfavor?
