Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/07/2006, 15:12
doncog
 
Fecha de Ingreso: noviembre-2002
Ubicación: stgo
Mensajes: 111
Antigüedad: 21 años, 5 meses
Puntos: 0
ahora me tira este error
--------------------------------------------------------------------
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/cerrocal/public_html/mysql3.php on line 9
Titulo:

----------------------------------------------------------------------

codigo
----------------------------------------------------
1<html>
2<body>
3<?php
4$link = mysql_connect("localhost", "cerrocal_cog","password");
5mysql_select_db("cerrocal_", $link);
6$result = mysql_query("SELECT * FROM Noticia", $link);
7
8 {
9 echo "Titulo: ".mysql_result($result, 0, "Titulo")."<br>";
10 }
11 mysql_close($link);
12 ?>
13
14 </body>
15 </html>

-------------------------------------------------------
El cpanel del servidor me dice que tengo que usar esta string

cerrocal_cog (Privileges: ALL PRIVILEGES)

Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:cerrocal_:localhost","cerrocal _cog","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "cerrocal_cog", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("cerrocal_");

-------------------------------------------------------------

haber si estoy les sirve de algo.

de ante mano muchas gracias
__________________
atte. cog.