Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/05/2007, 15:42
jdnoriega
 
Fecha de Ingreso: abril-2007
Ubicación: Carta
Mensajes: 10
Antigüedad: 17 años
Puntos: 0
Problemas al tratar de Mostrar los resulatdos de una consulta

Buenas Tardes.

AL tratar de mostrar el valor de una consulta me sale el siguiente mensaje en la caja de texto: Resource id #3

Este es el codigo


<?php
$link = @mysql_connect("localhost","root","")
or die("No se puede conectar al servidor ");
$db = @mysql_select_db("aplicaciones",$link)
or die("No se puede seleccionar la base de datos");

$ssql = "SELECT MAX(consecutivo)+1 FROM consecutivo";
$rs_ssql = @mysql_query($ssql,$link);


?>


<html>
<head>
<title>::::: CONSECUTIVO :::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" border="0">
<tr>
<td><form name="form1" method="post" action="">
<table width="60%" border="0" align="center">
<tr>
<td width="24%">consecutivo
<input type="text" name="textfield" value="<? echo $rs_ssql ?>";
</td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>

les agradeceria si me pudieran colaborar, gracias