Programming Languages Interview Questions
Questions Answers Views Company eMail

i start a new session with : session_start(); then i set some session variable like this : $_SESSION['name']=$_POST['name'];\ and some another variables. at bottom of page i set header to diffrent page : header('location: index.php'); exit(); now in new page (index.php i can't access to my session variables, like $_SESSION['name']) what's wrong ? thanks. here is my files : a.php ======================================== session_start(); require ('config.inc.php'); if(isset($_POST)) foreach($_POST as $v=>$k) { $items[$v]=$k; } $sql="SELECT * FROM members WHERE username='{$items['user']}' AND pass=MD5('{$items['Password']}') "; $res=mysql_query($sql); $row=mysql_fetch_assoc($res); if($row['username']) { $_SESSION['type']=$row['type']; $_SESSION['name']=$row['name']; $_SESSION['family']=$row['family']; $_SESSION['username']=$row['username']; $_SESSION['date']=$row['date']; } header('location: admin.php'); exit(); ====================================== admin.php ===================================== . . . =================================

5 6116

Every time i run a c-code in editor, getting some runtime error and editor is disposing, even after reinstalling the software what may be the problem?

2 3359

Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1443

Hai what is the different types of versions and their differences

1477

Make a "dynamic drop down list" with using only PHP,HTML and MySQL..

2 4828

why division operator not work in case of float constant?

2 3554

Is class is a abstract datatype in java?

1437

which header file contains main() function in c?

Google, HCL, TCS,

17 25950

a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?

CTS,

2 3462

What is procedural oriented language language..? give some examples of this language....?

1522

convert 0.9375 to binary

CTS, TANCET,

2 16814

what is Structural oriented language? give some example of this language.....?

1 4086

C,c++, Java is all are structural oriented or procedure oriented language..?

6 7014

what is the sylabus for priliminaries?

1666

can we allocate memory for interface? if no then why?

1458


Un-Answered Questions { Programming Languages }

What do you mean by python being an “interpreted language”?

480


What is an operator in python?

451


in PHP for pdf which library used?

548


What is indirection? How many levels of pointers can you have?

647


Can you have two blog pages in wordpress?

97






Explain me dogpile effect? How can you prevent this effect?

451


Are there arrays in python?

418


What is printf () in c?

570


What case you don't see plugin menu?

107


Write a c program to demonstrate character and string constants?

1672


What does sticky at top of lists does in publishing options while creating the front page?

67


What are the benefits of yii over other frameworks?

3


Write a code to display the current time.

443


What is oop in c++?

586


What is a flatmap in scala?

1