Thank u very much..Now the problem is solved..
Thank u very much..Now the problem is solved..
How to set ?can u explain the code?plz?
Hi...
I am doing a PHP project.I had executed the project on 3 machines.For one machine it is showing a warning as follows..
warning
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in C:\xampp\htdocs\document_lite\diverse.php on line 497
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in C:\xampp\htdocs\document_lite\diverse.php on line 510
I had checked the system time setting on all the 3 machines.There is no difference on the time setting..what should I do?I anybody have the idea plz help me..Its urgent..
Thanks for advance..
Hi..
How to get the difference between two dates using C#.NET web application in form of days?
If anybody knows plz help me..Itz very urgent.
Thank you..I had done it using AJAX..
Hi..
I am designing a tabless web page.The page contains 2 div sections.One is for menus and other is to display the contents of the page by clicking the menus.I don't want to use frames and iframes.Is it possible to do it using the div tag? The code I had used is show below.If any one knows please help me..
Thanks in advance...
<html>
<head>
<title>Example</title>
<style type="text/css">
div.left {
padding: 10px;
position: absolute;
left: 10px;
top: 5px;
width: 200px;
height: 595px;
border: 1px dashed orange;
background-color: #FBFDCC;
}
div.center {
padding: 10px;
position: absolute;
top: 6px;
left: 212px;
height: 595px;
width: 890px;
border: 1px dashed orange;
background-color: #7EF8F1;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<div class="left">
<ul>
<li class="style1"><span class="style2"><span class="style4"><a href="#">Home</a>
</span></span>
<li ><a href="contact.php">Contact Us</a>
<li ><a href="help.php">Help</a>
<li ><a href="admin.php">Administration</a>
</ul>
</div>
<div class="center"></div>
</body>
</html>
Any body knows how to close a firefox new tab window using javascript by clicking a hyper link?
I used the following code
<a href="" onclick="window.close()">Close this window</a>
<A href="javascript: self.close ()">Close this Window</A>
It works for new windows .But it will not works for firefox new tabs..
There is an a problem on declaring variables on MYSQL stored procedure.The code I used I used is shown below.
DELIMITER $$
CREATE
/*[DEFINER = { user | CURRENT_USER }]*/
PROCEDURE `emp`.`third_SP`()
/*LANGUAGE SQL
| [NOT] DETERMINISTIC
| { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }
| SQL SECURITY { DEFINER | INVOKER }
| COMMENT 'string'*/
BEGIN
DECLARE p1 int ;
SELECT Min(esal)
INTO pl
FROM employ;
END$$
DELIMITER ;
It shows the error message as
----------------------------------
error code :1327
undeclared variable p1
----------------------------------
I am using MySQL 5.1.4.1..Using SQLYOG Enterprise Trial 7. 11 as GUI.Anyone plz help me.
Thanks
Now it is working....Thank You Very Much..
Hi...
I am using xampp-win32-1.7.3.I want to use Adodb.I had seen that adodb is included on xampp package(xampp/php/pear/adodb).I had used the following code to retrieve data from mysql database.
<?php
include("adodb.inc.php");
$db = NewADOConnection('mysql');
$db->Connect("localhost", "root", "", "emp");
$result = $db->Execute("SELECT * FROM employ");
if ($result === false) die("failed");
while (!$result->EOF) {
for ($i=0, $max=$result->FieldCount(); $i < $max; $i++)
print $result->fields[$i].' ';
$result->MoveNext();
print "<br>n";
}
?>
It displays the following error messages
Warning: include(adodb.inc.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\divya\adodb\adodbex.php on line 2
Warning: include() [function.include]: Failed opening 'adodb.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\divya\adodb\adodbex.php on line 2
Fatal error: Call to undefined function NewADOConnection() in C:\xampp\htdocs\divya\adodb\adodbex.php on line 3
I had included the path of adodb onto php.ini.
include_path = ".;C:\xampp\php\PEAR;C:\xampp\php\PEAR\adodb"
Pear package is working properly...I didn't see any installation file for adodb..
Please help me .....
Thanks...
Thank you very much Mr DC Buller................Now Its working..................You are kidduuuuuu....
Hi..
Is it possible to set a email server on localhost?
Thanks,
Divya Krishnan
It is very help full.Thank you very much..
Hi.....
There is a problem with the following mysql query
create table emp2 (Leave decimal(12,2) default NULL)
Error message
Error Code: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Leave decimal(12,2) default NULL)' at line 1
If I type the query as..
create table emp2(Leav decimal(12,2) default NULL)
Then it will executed successfully..What is the problem with the field 'Leave'?Is it a key word?
Thanks for ur help .Now it is solved....I removed the space character
There is only one configuration file.Only php.ini...what to do?I am in trouble....
Hi..
I had used the following command to restore a mysql database on command line.
mysql -u root -p admin test < D:\backup\test.sql
here username-root,password-admin,database-test,backupfile located at-D:\backup\test.sql.
It doesnot working..showing error messages..If anybody knows plz help me.
Thanks
I removed the ; and tried..But again the same errors...What to do?Plz Plz help me....
Hi..
I want to use the pear package.Pear is already on my xampp package.On the file php.ini the pear is included(I didn't change the file php.ini..there is a line like include_path = ".;c\xampp\php\PEAR").I used the following code to retrieve the results from database..But it is not working ..
<?php
// Include the appropriate PEAR classes
require_once("DB.php");
$dsn = array(
'phptype' => 'mysql',
'hostspec' => 'localhost',
'database' => 'emp',
'username' => 'root',
'password' => 'mysql'
);
$dbh = DB::connect($dsn);
$stmt = "SELECT id, name FROM examples ORDER BY id";
$result = $dbh->simpleQuery($stmt, DB_FETCHMODE_ASSOC);
if ($dbh->numRows($result) > 0) {
$data = (object) $dbh->fetchRow($result, DB_FETCHMODE_ASSOC);
echo "id => $data->id<br>\n";
echo "name => $data->name<br>\n";
}
?>
showing the errors like following ...
Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\divya\Pear-examples\dbconnect.php on line 3
Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.;c\xampp\php\PEAR') in C:\xampp\htdocs\divya\Pear-examples\dbconnect.php on line 3
include_path = ".;c\xampp\php\PEAR"
Anybody knows plz help me to solve this...
Thanks