hello guru(s) and advance i have any problem with $_session
can help me more for solution my problem.
i use this code select.php
Code:
<?php
session_start();
include("../dbconfig.php");
$examp = $_GET["q"]; //query number
$page = $_GET['page']; // get the requested page
$limit = $_GET['rows']; // get how many rows we want to have into the grid
$sidx = $_GET['sidx']; // get index row - i.e. user click to sort
$sord = $_GET['sord']; // get the direction
.................
search code ...................
................
$idm = $_SESSION['id'];
//SQL Statement
$SQL = "SELECT * FROM
tb_profile A
INNER JOIN
tbc_divisi B
ON
A.id_divisi = B.id_divisi
INNER JOIN
tbc_status_aktif C
ON
A.id_statusaktif = C.id_statusaktif
WHERE id_p = ".$idm." ".$wh." ORDER BY ".$sidx." ". $sord." LIMIT ".$start." , ".$limit;
...................
//SQL Query Statment
...................
?>
i cant echo $idm;
so i can't select my data from mysql table...
can i use $_SESSION for this situation or anything else ??
thx before.. please help me...
Bookmarks