Ver Mensaje Individual
  #7 (permalink)  
Antiguo 20/06/2012, 08:47
emiiangela
 
Fecha de Ingreso: junio-2012
Ubicación: maracaibo
Mensajes: 36
Antigüedad: 11 años, 10 meses
Puntos: 0
Respuesta: hacer una consulta por cedula o id

hola amigo , modifique todo. porque no di con el error, pero ahora tengo otro...
mira lo que he hecho:
<?php require_once('../Connections/moodle.php');
$cedula = getParam($_GET["cedula"], "");
$total = 0;
if ($cedula!=""){
$slike = sqlValue($criterio."%", "bigint");{
$query = "SELECT id, username, phone1 FROM mdl_user WHERE id LIKE '$colname_juego' ORDER BY username ASC LIMIT $startRow_juego, $maxRows_juego";
$queryconsult = mysql_query($query) or die ("Error: ". mysql_error() . "
" . $query);
$total = mysql_num_rows($queryconsult);
}
?>
<html
<head>
<title>Consultar datos en MySQL</title>
</head>
<body>
<h3>Consultas por Cedula</h3>
<form name="form1" method="get" action="resultado.php">
<p align="center">Cedula :<input name="cedula" type="text" value="" id="cedula">
<input name="consultar" type="submit" id="consultar" value="Revisar">
</form>
<?php if ($total> 0) { ?>
<table>
<thead>
<tr><th>ID </th><th>Username </th><th>Phone1 </th></tr>
</thead>
<tbody>
<?php
while ( $row = mysql_fetch_assoc($queryconsult)) { ?>
<tr>
<td><?php echo $row['id']; ?></td>
<?php echo $row['username']; ?></td>
<?php echo $row['phone1']; ?></td>
</tr>
<?php } ?>
</tbody>
</table>

<</tr>
<?php } ?>
</table>
<?php } ?>
<p>&nbsp;</p>
</body>
</html>

. ahota utilizo solo una pagina para hacer la consulta. pero me sale un error:
Fatal error: Call to undefined function getParam() in C:\wamp\www\proyecto_SED_LUZ\Resultado.php on line 2