Which of the following represents the proper way to set a
session variable?
Answer:
a. $_SESSION['foo'] = 'bar';
b. session_start();
c. session_set_save_handler ('myopen', 'myclose', 'myread',
'mywrite', 'mydelete', 'mygarbage');
d. $foo = $_SESSION['foo'];
2.When administering MySQL, you should make the data
directory accessible via the operating system
3.which statement can be used to determine how the optimizer
resolves a query
Answers were Sorted based on User's Feedback
Answer / ramji
Question: When administering MySQL, you should make the
data directory accessible via the operating system ....
Answer 1: only to the "mysql" user
Answer 2: only to the "root" user
Answer 3: to the "mysql" user, and also to the "webserver" user
Answer 4: to the "mysql" user, and also to people who are
installing applications that use MySQL
| Is This Answer Correct ? | 73 Yes | 10 No |
Answer / p.swamy
session variable answer is:
a. $_SESSION['foo'] = 'bar';
| Is This Answer Correct ? | 31 Yes | 2 No |
Answer / rubinthomas
1.In order to set a session variable u must first declare
the session_start() function as the first statement when u
execute your page after which can u assign or manipulate
session variables $_SESSION["foo"] = 'bar';
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / savitha
session variable answer is:
a. $_SESSION['foo'] = 'bar';
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / palaniraja.wordpress.com
3.which statement can be used to determine how the optimizer
resolves a query
EXPLAIN
| Is This Answer Correct ? | 6 Yes | 1 No |
What is the delimiter syntax is PHP's default delimiter syntax
How to Retrieve a Cookie Value?
Tell me how to execute an sql query? How to fetch its result?
Is python easier than php?
<?php /** * @version 1.0 $ * @package HelloWorld * @copyright (C) 2005 Andrew Eddie * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?> <?php $database =& JFactory::getDBO(); //$sql = 'SELECT name, username FROM #__users'; $sql="select a.id, a.title, a.introtext, a.created_by, a.created from jos_content a, jos_content_frontpage b where a.id=b.content_id and b.ordering='2'"; $database->setQuery( $sql ); $user = NULL; $user = $database->loadObject(); //echo 'Name: ' . $user->name . '<br />'; echo '<h1>' . $user->title . '</h1><br />'; //echo 'Username: ' . $user->username; echo ' ' . $user->introtext; i write this and fetch the result from the database the result is The Intranet is up and working ! Our intranet is up and working and should be accessible from both Mumbai and NOIDA. As you will notice, this template, look & feel is not in line with our corporate indentity but we chose the route of "form-follows-funtion" In the first phase, we are rolling out functionality that is critical to all of us - Policies and How-to documents. In subsequent phases, we will be launching other features. Keep watching this space for more details i want to see only 4 line of top then how this may done
What is data abstraction in php?
how we can upload and view video files
Is php a middleware?
What is isset and unset in php?
What are the types of variables in php?
What does $_ post mean in php?
how to uploade video in php????