Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- session_start();
- if (!isset($_SESSION['user_login_status']) AND $_SESSION['user_login_status'] != 1) {
- header("location: index.php");
- exit;
- }
- $sql="SELECT tabla1.id,tabla2.id,tabla2.identificacion,tabla2.nombre,tabla2.apellido,tabla3.estatus,tabla1.referencia from tabla3 inner join tabla1 on tabla1.id=tabla3.id_pro right join tabla2 on tabla2.id=tabla1.id_pe and tabla1.tipo='2' where tabla3.id_usuario='". $_SESSION['user_id'] ."' group by tabla3.id_pro order by tabla1.id asc";
- $ressql=mysql_query($sql,$conexion);
- while ($row=mysql_fetch_row ($ressql)){
- $id_tabla1=$row[0];
- $id_tabla2=$row[[1]];
- $identificacion=$row[2];
- $tabla2_nombre=$row[3];
- $tabla2_apellido=$row[4];
- $tabla3_estatus=$row[5];
- $tabla1_referencia=$row[6];
- $_SESSION['identificador_1'] = $primer_valor_que_deseas_enviar;
- $_SESSION['identificador_2'] = $segundo_valor_que_deseas_enviar;
- // compruebas que los $_SESSION no estén vacíos
- if(isset($_SESSION['identificador_1']) && isset($_SESSION['identificador_2'])) {
- $valor_1_recibido = $_SESSION['identificador_1'];
- $valor_2_recibido = $_SESSION['identificador_2'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement