Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/09/2003, 15:26
cakerosoft
 
Fecha de Ingreso: junio-2003
Ubicación: santiago
Mensajes: 14
Antigüedad: 20 años, 10 meses
Puntos: 0
un problemilla....

tengo un problemilla, me cambie de hosting, todo funcionaba bien, y cuando cambie de hosting la base de datos me tira el siguiente error:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cujd-des/public_html/designcl/ilutionsv2/portfolioweb/portafolio.php on line 26

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cujd-des/public_html/designcl/ilutionsv2/portfolioweb/portafolio.php on line 27

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/cujd-des/public_html/designcl/ilutionsv2/portfolioweb/portafolio.php on line 36

Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/cujd-des/public_html/designcl/ilutionsv2/portfolioweb/portafolio.php on line 37


__________
El codigo del portafolio.php es este:

<?php
function Conectarse()
{
if (!($link=mysql_connect("localhost","cujd-des_lucho","cakerosoft")))
{
echo "Error conectando a la base de datos.";
exit();
}
if (!mysql_select_db("cujd-des_luchin",$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
?>
<?php
$resultado = mysql_query ("select * FROM web where id = '$id' ", $link);
while($row = mysql_fetch_array($resultado)) {
$url = $row["URL"];
$lenguaje = $row["Lenguaje"];
$nombre = $row["Nombre"];
$imagen = $row["Imagen"];
echo "<p align='center'><img border='0' src='$imagen' ></p>";
echo "<p align='center'><font face='Verdana' size='1'><b>Proyecto:</b> $nombre<br><b>URL:</b> $url<br><b>Lenguaje:</b> $lenguaje";

}
mysql_free_result($resultado);
mysql_close($link);
?>