I moved website from NT to W2K and got problem of date conversion. I'm
using MS SQL Server. In SQL Server, the data looks like 06/09/03. I got
06 9 2003 12:00AM in W2K and Jun 9 2003 12:00AM in NT. strtotime()
works ok on NT, but return -1 on W2K.
Any ideas? Thanks a lot!
Larry
--
PHP
I knew it's incorrect format. But why string from NT is correct? I don't
want to change source codes on website migration.
---
Got error message: Unable to load dynamic library
'.\extension\php_mssql.dll' - The specified module could not be found.
I tried change php.ini many times, still got same error. I'm pretty sure
these DLLs in such directory.
Any ideas, Thanks!
Use date() and strtotime() together. strtotime will convert date string
into integer timestamp. Still have any questions, check these two
functions online plz.
Dale Hersh [EMAIL PROTECTED]
08/22/2003 10:13 AM
To: [EMAIL PROTECTED]
cc:
Subject:[PHP]
I'm using IIS5.0 on W2k. I have upgraded w2k to sp4 and ms sql server to
sp3. I created a new table and just do a simple query in php program. But
it seems sql server doesn't return any query result. I'm using
mssql_fetch_array() function, but no any return. PHP program is just
pending there.
I believe all pages in your site are protected by session variables. Try
to login first, then go where you want to go. Or try to remark codes which
check your login status.
Jami [EMAIL PROTECTED]
09/17/2003 03:52 PM
Please respond to listmail
To: PHP General [EMAIL
Did you open register_globals = On in php.ini?
Larry Li/CNTR/APPLIED [EMAIL PROTECTED]
09/17/2003 04:04 PM
To: [EMAIL PROTECTED]
cc: PHP General [EMAIL PROTECTED]
Subject:Re: [PHP] SESSION variables losing data on WinXP?
I believe all pages in
try cgi.force_redirect = Off.
nabil [EMAIL PROTECTED]
09/18/2003 05:28 PM
To: [EMAIL PROTECTED]
cc:
Subject:[PHP] ANY ONE ANSWER ME PLEASE !
I m going to tear my hair off, I can not solve the problem.. with the
stupid
IIS
i got the following error:
Change MS SQL SERVER Authentication's type to SQL Server and Windows
instead of windows only.
Ongart Wongsanupa [EMAIL PROTECTED]
09/18/2003 04:25 PM
To: [EMAIL PROTECTED]
cc:
Subject:[PHP] [PHP - MSSQL]: Problem with mssql_connect
Please
First I can't find something like mssql.so in extensions folder. BTW, I
also need gd2.so. How could I get them back? Any easy way to connect ms
sql server? I need migrate my site into linux apache server from win 2k
IIS.
Thanks a lot,
Larry
Could anybody show me how to configure it? Thanks!
if (!id !edit) - something wrong here.
Normally id0. if so, id=true. !id=false.
(false anything) is false.
echo blah blah blah will never be executed.
---
printf(%02d, $integer); Use sprintf() if you want to save output.
Larry
---
Try to use javascript.
a href=javascript:document.form1.submit()submit/a
Change form1 as your actual form name.
-
Sure. Could you paste your html codes php codes here? I believe there are
a lot of nice guys are willing to help you. BTW, nice to meet you and hope
i could help you someway. I'm chinese too.
Larry
Where is $number assignment? Because $number is ZERO, your code will not
run any statements in loop statement.
Larry
---
The code looks like:
if( $actionflag == delete )
{
//Delete Table ip_enrollment
$query=delete from ip_enrollment where id='$id';
$AMC_DB-query($query) or die(database server wasn't available
now.);
//Delete Table ip_evaluation
$query=delete from ip_evaluation where
Yes. PHP supports this feature you need.
for loop $i
{
$temp=value.$i;
$myNewVar = $$temp;
}
Hope it help.
Ryan Thompson [EMAIL PROTECTED]
10/09/2003 01:38 PM
To: richard cook [EMAIL PROTECTED],
[EMAIL PROTECTED]
cc:
Subject:Re: [PHP]
form method=post action=your_php_file.php
input name=id
/form
in your_php_file.php, try
select * from somedatabase where field=$id
Mike Knittel [EMAIL PROTECTED]
11/20/2003 11:45 PM
To: [EMAIL PROTECTED]
cc:
Subject:[PHP] Using JavaScript variables
header(Content-type: application/vnd.ms-excel);
header(Content-Disposition: attachment; filename=report.xls);
- Forwarded by Larry Li/APPLIED MATERIALS on 11/25/2003 03:40 PM -
Phillip Jackson [EMAIL PROTECTED]
11/25/2003 02:30 PM
To: [EMAIL PROTECTED]
cc:
20 matches
Mail list logo