
Problema de busqueda
Publicado por carmen (17 intervenciones) el 07/04/2016 17:41:51

Buenos Días que problema molestar tengo un gran problema o error estoy enviado datos a un foro sencillo pero al momento de buscar los datos guardado me sale error dejo condigo ojala alguien vea mi error
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Recent Discussions (1/4) - Foro dlancEdu - Español (España)" />
<meta name="generator"/>
<title>Foro Estilo</title>
<link rel="icon" type="Imagenes/jpg" href="Imagenes/logo.jpg">
<link rel="stylesheet" type="text/css" href="css/stile.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-resposive.css">
<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/font-awesome.css" rel="stylesheet" />
<link href="css/custom.css" rel="stylesheet" />
<script src="js/bootstrap.min.js"></script>
<script type="js/jquery.slides.js"></script>
<script type="js/jquery.slides.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/jquery.inputlabel.js"></script>
<script type ="text/javascript" src ="js / jquery-1.7.1.min.js"> </script>
<script type ="text/javascript" src ="js / jquery-Steppize.js"> </script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<link rel="icon" type="Imagenes/jpg" href="Imagenes/logo.jpg">
<style type="text/css">
#recuadro1{
box-shadow: 100px 20px 60px #aaa;
border-radius: 0px;
background-color:#ACDDEE;
width:300px;
padding:30px;
}
</style>
</head>
<body>
<div id="logotipo">
<table>
<tr>
<td width="10%"><img src="../Imagenes/LOGOS/OperadorEE.jpg"></td>
<td width="69%"> </td>
<td width="10%"><a class="text" href="../Actualizar.php"> <span class="glyphicon glyphicon-repeat"></span>Actualizar Datos</a></td>
<td width="1%"></td>
<td width="10%"><a class="text" href='../close.php'><span class="glyphicon glyphicon-off"></span>Cerrar Sesión</a></td>
</tr>
</table>
<br>
<div class="container">
<a href='../index.php'><i class="glyphicon glyphicon-home"> </i>Inicio</a><br><br>
<?php
include("../Modelo/Conection.php");
if(isset($_GET["id"]))
$id = $_GET['id'];
$query="SELECT * FROM foro INNER JOIN resforo on idForo=idForo where foro.idForo=$id ORDER BY foro.fecha DESC ";
$result=mysqli_query($conexion,$query) or die(mysqli_error($conexion));
while($row=mysqli_fetch_array($result, MYSQLI_ASSOC)){
$id=$row['idForo'];
$titulo=$row['tema'];
$autor=$row['autor'];
$mensaje=$row['mensaje'];
$fecha=$row['fecha'];
$respuestas=$row['respuestas'];
echo"<br>";
echo "<table id=recuadro1>";
echo "<tr><td>$titulo</tr></td>";
echo "<tr><td>autor:$autor</td></tr>";
echo "<tr><td>$mensaje</td></tr>";
echo "</table>";
echo "<br/><br /><a href=formulario.php?id&respuestas=$respuestas&identificador'>Responder</a><br />";
}
$query2 = "SELECT * FROM resforo WHERE identificador = $id ORDER BY fecha DESC";
$result2 = mysqli_query($conexion,$query2)or die(mysqli_error($conexion));
echo "<br/>respuestas:<br/><br />";
while($row = mysqli_fetch_array($result2, MYSQLI_ASSOC)){
$titulo = $row['tema'];
$autor = $row['autor'];
$mensaje = $row['mensaje'];
$fecha = $row['fecha'];
$respuestas = $row['respuestas'];
echo "<tr><td>$titulo</td></tr>";
echo "<table id=recuadro1>";
echo "<tr><td>autor:$autor</td></tr>";
echo "<tr><td>$mensaje</td></tr>";
echo "</table>";
echo "<br/><br/><a class='btn btn-primary' href='../formulario.php?id&respuestas=$respuestas&identificador=$id'>Responder</a><br />";
}
?>
</div>
</div>
</body>
</html>
Valora esta pregunta


0