Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/10/2009, 18:07
israel_u
 
Fecha de Ingreso: febrero-2009
Mensajes: 32
Antigüedad: 15 años, 2 meses
Puntos: 0
problema con fotos desde php

hola que tal, haber si alguien me puede ayudar en el siguiente problema, tengo una base de datos donde guardo rutas de imagenes y otros datos hago una conexion a la misma desde dreamweaver y me muestra todo menos las fotos, estas fotos las tengo almacenadas en una carpeta que se llaman grandes que a su vez es subcarpeta de imagenes, el campo foto es el unico que no me muestra en mi pagina web solo se pone un signo de interrogacion en la parte de la imagen este es codigo que tengo :

<?php require_once('Connections/fotos.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;
}
}

mysql_select_db($database_fotos, $fotos);
$query_Recordset1 = "SELECT * FROM fotos";
$Recordset1 = mysql_query($query_Recordset1, $fotos) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<table width="200" border="1">
<tr>
<td><?php echo $row_Recordset1['alias']; ?></td>
<td><?php echo $row_Recordset1['nombre']; ?></td>
<td><img src="imagenes/grandes/<?php echo $row_Recordset1['foto']; ?>" width="60" height="54"></td>
</tr>
</table>
<?php
mysql_free_result($Recordset1);
?>



espero que alguien pueda ayudarme ya le busca por todos lados y no encuentro la manera de mostrar la foto muchas gracias de antemano