I have a code:
<?php
$hostname="sonpham.24mbnet
.com";
$username="root";
$database="SE";
$ma = isset ($ma)? $ma:'';
$tien = isset($tien)?$tien:0;
$cmd= isset ($cmd)? $cmd:'';
$myConnect=mysql_connect($
hostname,$
username);
if (!$myConnect) {$msgErr = "Can not Connect to MySQL Server<Br>\t\t".mysql_erro
r() ."<Br><Br>\n"; print $msgErr;}
mysql_select_db($database,
$myConnect
);
switch ($cmd) {
case 'OK':
$laygio = getdate();
$thoigian= $laygio["hours"].":".$layg
io["minute
s"].":".$l
aygio["sec
onds"];
mysql_query("insert into thanhvien(MAuser)values('$
ma')") or die( 'Khong nhap duoc'. mysql_error());
$ttx=($tien-$tien)/$tien;
mysql_query("insert into tk_tienvao(MAuser,Thoigian
,Tienvao,t
iensudung,
tx)values(
'$ma','$th
oigian','$
tien','$ti
en','$ttx'
)") or die( 'Khong nhap duoc'. mysql_error());
break;
default:
}
$result=mysql_query("selec
t * from tk_tienvao");
$recc=mysql_num_rows($resu
lt)+1;
print "<HTML>";
print "<BODY leftmargin=30 bgColor='#CCCCFF' onLoad='moveTo(80,250)'><b
r><br>";
print "<CENTER><FORM method='POST' name='me' action=".$PHP_SELF.">";
print "<TABLE border=1 bordercolor='#0000FF' bgColor='#330066' width='100%' style='color:#FFFF00' align=center>";
print "<TR width='100%' align=center><TD style='font-family:Times New Roman;font-size:14;color:#
FFCCFF' colspan=2>Số lượng người mở tài khoản là:<b style='color:#FFFF00'>".($
recc-1)."<
/B></TD></
TR>";
print "<TR width='100%' align=center>";
print" <TD colspan=2 width='100%' style='color:#00FF00;font-
weight:bol
d;font-siz
e:20px'>CR
EATE NEW ACCOUNT</TD></TR><TR align=center><TD style='font-size:15px;colo
r:#FFFF00;
font-weigh
t:bold'>US
ERNAME</TD
>";
print " <TD><INPUT type='text' name='ma' value='QSE'></TD></TR><TR align=center><TD style='font-size:15px;colo
r:#FFFF00;
font-weigh
t:bold'>CA
SH</TD> <TD><INPUT TYPE='text' NAME='tien' value='100000'></TD></TR><
TR align=center><TD style='font-size:15px;colo
r:#FFFF00;
font-weigh
t:bold' Colspan=2><INPUT TYPE='submit' value='OK' name='cmd' style='cursor:hand'>
&nbs
p;<INPUT type='Reset' value='Reset' style='cursor:hand'>
&nbs
p;<INPUT type='button' value='Exit' onClick='window.close()' style='cursor:hand'></TD><
/TR></TABL
E></FORM><
/CENTER></
BODY></HTM
L>";
mysql_close();
?>
But when run then the browse show: Notice: Undefined variable: PHP_SELF in D:\php&mysql\QSE_SON\Qse\d
ata\nao.ph
p on line 25
I still run well on Win98se or WinNT but not run on Win2000. Can you help me? I'am very need! Thank You very much!