Cita:
Iniciado por Miguel_Mendez
Hola Emanuel
Lo primero que hay que hacer es crear un campo de busqueda con un input llamado por ejemplo usuario
Código HTML:
Ver original<form id="form1" name="form1" method="post" action=""> <input name="nombre" type="text" id="nombre" /> <input type="submit" name="button" id="button" value="Submit" />
una vez hecho esto creamos un recorset en DW al campo en que se va a hacer la busqueda por ejemplo selecciono la tabla profesores y busco en el campo
usuario. Seleccionamos un filtro con el nombre del campo del formulario nombre y en
Form Variable seleccionamos el campo usuario
Ahora abrimos el panel de Bindings y arrastramos el campo nombre como se muestra en la imagen.
lo siguiente es las propiedades del form que en la imagen de abajo se muestra
y como paso ultimo podemos agregar un Repet Region para que muestre si hay mas resultados con el mismo nombre
el codigo quedo algo asi
Código PHP:
Ver original<?php require_once('Connections/conexion.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
}
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;
}
}
$colname_Recordset1 = "-1";
if (isset($_POST['nombre'])) { $colname_Recordset1 = $_POST['nombre'];
}
$query_Recordset1 = sprintf("SELECT * FROM profesores WHERE nombre = %s", GetSQLValueString
($colname_Recordset1, "text")); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="Untitled-1.php">
<label for="nombre"></label>
<input name="nombre" type="text" id="nombre" />
<input type="submit" name="button" id="button" value="Submit" />
</form>
<?php echo $row_Recordset1['nombre']; ?>
</body>
</html>
<?php
?>
y eso es todo
espero haberte ayudado
saludos
Hola Miguel, ahora lo voy a probar, pero te agradezco muchisimo la excelente explicacion !

luego te comento como me funciono
otra vez GRACIAS