Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/06/2008, 23:53
robrijack
 
Fecha de Ingreso: junio-2008
Mensajes: 3
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: bolsa de trabajo detectar 3 veces a un usuario

aqui pongo mi codigo:

<?php

require('common1.inc');

require('common2.inc');

?>
<?php

$id_link = mysql_connect($hostname, $username, $password);

if (! $id_link) {

$message = "La base de datos de usuarios no esta disponible, intente más tarde";

}

else {

$num_cliente = $arr_request['num_cliente'];

$str_sql = "select cliente_nombre from clientespaf08 where num_cliente='$num_cliente'";

$result = mysql_db_query($dbname,$str_sql,$id_link);

$message = "";

if (! $result) {

$message = "Número de cliente no existe";

}

$number_of_rows = @mysql_num_rows($result);

if ($number_of_rows < 1) {

$message = "Número de cliente no existe";

}

else {

$record = mysql_fetch_object($result);

}

}

?>

<?php

if ($message == "") {

if ($record->cliente_nombre == "") {

$forma = "pag06.php";

$message = "¡Número de cliente correcto!";

$boton = "Continuar";

}

else {

$forma = "pag03.php";

$message = "Bienvenido ".$record->cliente_nombre;

$boton = "Ir a mi pagina";

}

}

else {

$forma = "pag01.php";

$boton = "<-- Regresar";

}

?>

<?php affy_header($message) ?>

<html>



<head>


<title>Registro </title>

<style>

<!--

.secc { font-family: Times New Roman; font-size: 10 pt; color: #FFFFFF;

background-image: url('imagenes/bfe_bg.gif'); font-weight: bold;

border-left: 1 solid #990000; border-bottom: 1 solid #990000;

padding-left: 5; padding-top: 2; padding-bottom: 2 }

.titulo { font-size: 12 pt }

.ley { color: #990000; line-height: 115%; margin-left: 10; margin-top: 0;

margin-bottom: 0 }

-->

</style>

</head>



<body background="fondo.jpg" topmargin="5" leftmargin="10">

<div align="center">
<table bgcolor="white" border="0" width="500" cellpadding="0" style="border-collapse: collapse; font-family: Tahoma; font-size: 10pt; color: #0000FF" id="table1">
<tr>
<td>
<img border="0" src="ga.gif" width="500" height="50"></td>
</tr>
<tr>
<td>


<form action="<?php echo $forma ?>" method="post">

<?php affy_message($message) ?>

<input type="hidden" name="num_cliente" value="<?php echo $num_cliente ?>">

<input type="submit" value="<?php echo $boton ?>">
</form>
</td>
</tr>
</table>
</div>


</body></html>

<?php affy_footer() ?>