File: /home/asjudine/public_html/pruebaCopia.php
<?php
require_once("Conectarse.php");
$sql = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE Cargo="DISER BARRANQUILLA" ||Cargo="DISER BOGOTA" ||Cargo="DISER BUCARAMANGA
" ||Cargo="DISER CALI" ||Cargo="DISER FLORENCIA" ||Cargo="DISER IBAGUE" ||Cargo="DISER MEDELLIN" ||Cargo="DISER MELGAR" ||Cargo="DISER MOCOA" ||Cargo="DISER MONTERIA" ||Cargo="DISER NEIVA" ||Cargo="DISER PASTO" ||Cargo="DISER PEREIRA" ||Cargo="DISER TUNJA" ||Cargo="DISER VALLEDUPAR
" ||Cargo="DISER DISER VILLAVICENCIO"');
if (!$sql) {
die('Invalid query hhh: ' . mysql_error());
}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);
?>
<html>
<script type="text/javascript" language="Javascript">
<!-- Begin
document.oncontextmenu = function(){return false}
// End -->
</script>
<script language="JavaScript1.2">
function disabletext(e){
return false
}
function reEnable(){
return true
}
//if the browser is IE4+
document.onselectstart=new Function ("return false")
//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}
</script>
<body bgcolor="BLACK">
<center> <img src="ELEMENTOS\cabezote.gif" WIDTH=90% > </center>
<center>
<h1><font face="algerian" color="silver"><b> USUARIO </b></font>
<form action="registro.php" method ="POST">
<table border="5" width="10" bgcolor="silver">
<tr><td>
NOMBRE DIRECTOR SERVICIO:
</td><td>
<select name="Nombre">
<option value="">--SELECCIONE EL NOMBRE --</option>
<?php
do {
?>
<option value="<?php echo $row_sql['Nombre_Completo'];?>"><?php echo $row_sql['Nombre_Completo']?></option>
<?php
} while ($row_sql = mysql_fetch_assoc($sql));
$rows = mysql_num_rows($sql);
if($rows > 0) {
mysql_data_seek($sql, 0);
$row_sql = mysql_fetch_assoc($sql);
}
?>
</select> </td>
</tr>
<tr><td>
</font>
</table>
<br>
<input name="consultar" id="consultar" type="submit" class="Estilo51" value="Consultar">
</form>
<FORM>
</Form>
<br>
</html>