Hola, estuve revisando el codigo pero no supe como hacerlo, aca dejo el codigo de la pagina coments para ver si me pueden orientar.
Saludos,
Código :
<?php require_once('Connections/warriorsconex.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_warriorsconex, $warriorsconex);
$query_Recordset1 = "SELECT * FROM comentarios";
$Recordset1 = mysql_query($query_Recordset1, $warriorsconex) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Paintball Warriors</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table align="center" class="bg-top">
<tr>
<td class="top">
<br style="line-height:37px">
<br>
<br style="line-height:111px">
<img alt="" src="images/logo.jpg" style="margin-left:100px; "><br>
<div style="margin-left:72px; margin-top:124px"><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r1','','images/l1-1.gif',1)"><img alt="" src="images/l1.gif" name="r1"></a><a href="paintball.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r2','','images/l2-2.gif',1)"><img alt="" src="images/l2.gif" name="r2"></a><a href="servicios.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r3','','images/l3-3.gif',1)"><img alt="" src="images/l3.gif" name="r3"></a><a href="galeria.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r4','','images/l4-4.gif',1)"><img alt="" src="images/l4.gif" name="r4"></a><a href="contactphp.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r5','','images/l5-5.gif',1)"><img alt="" src="images/l5.gif" name="r5"></a></div>
</td>
</tr>
<tr>
<td style="height:370px">
<table >
<tr>
<td class="bg-left"></td>
<td style="width:717px;">
<table >
<tr>
<td style="height:345px">
<table >
<tr>
<td class="col"></td>
<td class="col2">
<table >
<tr>
<td style="width:32px;"></td>
<td style="width:633px;">
<img alt="" src="images/6-t1.gif" style=" margin-top:29px"><br>
<div style="margin:5px 0px 0 14px">
<p><strong>Comentarios de Personas que nos han visitado</strong><br>
Si ultimamente nos visitaste podés dejar comentarios sobre tu experiencia, así podemos mejorar nuestro servicios y más personas pueden enterarse de tu experiencia en Paintball Warriors. </p>
<p>Para ingresar un nuevo comentario hazlo acá: </p>
<form method="post" action="nuevocomentario.php">
<p>Nombre o Nick:<br>
<input name="name" type="text" value="" maxlength="30" readonly="readonly">
<br>
Correo Electrónico (No sera publicado):<br>
<input name="email" type="text" value="" maxlength="30" readonly="readonly">
<br>
Mensaje (Máximo 250 caracteres):<br>
<textarea name="message" cols="40" rows="6" readonly="readonly"></textarea>
</p>
Escriba los digitos de la siguiente imágen:<br />
<input name="verif_box" type="text" id="verif_box" style="padding:2px; border:1px solid #CCCCCC; width:60px; height:20px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px;" value="" maxlength="4" readonly="readonly">
<img src="verificationimage.php?<?php echo rand(0,9999);?>" alt="verification image, type it in the box" width="50" height="24" align="absbottom" /><br />
<br />
<input type="submit" name="Send" value="Enviar">
<input type="reset" name="Clear" value="Borrar">
</form>
</p>
<table width="300" border="3">
<tr>
<th scope="col">Comentario</th>
<th scope="col">Nombre</th>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['coment']; ?></td>
<td><?php echo $row_Recordset1['nombre']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><br>
</p>
</div>
</td>
<td style="width:40px;"></td>
</tr>
</table>
</td>
<td class="col"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="bg-mb"><p> </p>
<p><a href="shop/index.php"><img src="images/bannerequipo.gif" width="710" height="60"></a></p></td>
</tr>
</table>
</td>
<td class="bg-right"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="bg-bot">
<br style="line-height:25px">
Powered by © <a href="http://www.guimusolutions.com" >Guimu Solutions</a></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>