or die ( 'Could not connect: ' . mysql_error ( ) ) ;Its not working.All times are UTC - 5 hours.I can not get my variable $old_dept_ ];A community of PHP developers offering assistance, advice, discussion, and friendship.$id = mysql_real_escape_string ( $_GET [ 'id' ] ) ;DevNet Resident Joined: Fri Sep 16, 2005 9:06 pm Posts: 1375.Top.Top.Page 1 of 1 [ 5 posts ] Print view Previous topic | Next topic Author Message Spectrum_tr.session is not working.Thank you. Yes i did that. Its not giving me any error now, but again i can not use the session.$_SESSION [ 'department_id' ] = $theRow [ 0 ] ;It is currently Wed Oct 09, 2019 2:10 pm.My first page of the code is:mysql_select_db ( 'arda' ) or die ( 'Could not select database' ) ;$link = mysql_connect ( 'localhost' , 'root' )Spectrum_tr.PHP Developers Network.Forum Newbie Joined: Sat Dec 10, 2005 12:22 pm Posts: 14.Forum Newbie Joined: Sat Dec 10, 2005 12:22 pm Posts: 14.Charles256.$sql = "select * from departments where DEPARTMENT_ >$id " ;