[PHP] kindly help adding days on a date

2001-10-19 Thread Krushna Kumar R

Hi,

I have 2 fields on a table as shown below

1. period   int- we enter no of days as number/integer
2. lastdatedate  - here i'll have to add period to todays(current) date and store 
in the table

i used dateadd it was working on mysql prompt, but when i used it with PHP, it doesnt 
work

Any help would be appreciated

Regards
Krushna Kumar



[PHP] session not working

2001-09-27 Thread Krushna Kumar R

Hi,

I wrote a program where the session gets created, but on subsequent page the session 
does not work or i could not retrieve the value kindly help me, I have put the coding 
below

The operating system I use is Win98 and Personal Web Server, PHP version used is 4.0.6

File 1 : where the session is registered or created

?session_start();?
HTML
body bgcolor=#ff
?php

session_register(uname);
session_register(pwd);
print Username var is - . $username.br;
print Password var is - . $password.br;
$uname=$username;
$pwd=$password;
print Uname var is - . $uname.br;
print Pwd var is - . $pwd.br;

echo session_is_registered(uname);
echo session_name(uname);
 ?
a href=file2.phpclick here to go to next page/a
/body
/HTML


File 2 : Next page, the file where i check for the session variable's value

?session_start();
print uname is - .$uname.br;
echo Session is - .session_is_registered(uname).br;
echo session name is - . session_name(uname).br;
echo the session is $uname.br;
?
a href=last.phpclick here go to last page/a

Those are the coding i had used on the files i was trying to execute

Regards
Krushna Kumar



Re: [PHP] search engine submission

2001-09-25 Thread Krushna Kumar R

Hi,

I have a website which i would like to submit to the search engines
frequently, so i thought i could write a program for this, not depending on
other free web sites  for submission

Rgds
Krushna Kumar

- Original Message -
From: Jon Haworth [EMAIL PROTECTED]
To: 'Krushna Kumar R' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, September 24, 2001 7:36 PM
Subject: RE: [PHP] search engine submission


 You can find this code all over the web, an example of it can be seen at
 most search engines on the Add a URL page :-)

 What are you trying to do?

 Cheers
 Jon


 -Original Message-
 From: Krushna Kumar R [mailto:[EMAIL PROTECTED]]
 Sent: 24 September 2001 15:08
 To: [EMAIL PROTECTED]
 Subject: [PHP] search engine submission


 Hi,

 Can someone help me by where i could get some free code for search engine
 submission

 Regards
 Krushna Kumar


 **
 'The information included in this Email is of a confidential nature and is
 intended only for the addressee. If you are not the intended addressee,
 any disclosure, copying or distribution by you is prohibited and may be
 unlawful. Disclosure to any party other than the addressee, whether
 inadvertent or otherwise is not intended to waive privilege or
confidentiality'

 **

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]