OuTsOo Posted April 16, 2009 Report Share Posted April 16, 2009 Man problēma tāda... Man ir skripts Nika registrācija no Techpoint pakalpojumiem... Un kad es noziedoju man parāda: 7 Winter 1239828072 Kā sataisīt lai to laiku rādītu normāli? Link to comment Share on other sites More sharing options...
worm Posted April 16, 2009 Report Share Posted April 16, 2009 ja tev izvads iet caur php, tad echo date("d-M-Y H:i", 1239828072); Link to comment Share on other sites More sharing options...
X ID Posted April 16, 2009 Report Share Posted April 16, 2009 Te tu taisies atkārtot to pašu, ko @ php.lv ? Tagad viņš prasīs, kur tas date() vispār jāliek. Link to comment Share on other sites More sharing options...
OuTsOo Posted April 16, 2009 Author Report Share Posted April 16, 2009 Bet tiešām kur tas date jāliek? P.S Labāk pastāstīt cilvēkam nekā sēdēt un skopsties..visi no kautkā mācās. Link to comment Share on other sites More sharing options...
*jancis38* Posted April 16, 2009 Report Share Posted April 16, 2009 Tevi vajag mācīt, vai visu mutē iebāzt? Vispirms sāc ar šo, diezgan noderīgi. Starp citu, pat pašā gign'ā var šo to noderīgu atrast. Viss par f-iju date(). Savādāk būs drusku pagrūti rediģēt kādu CMS lapu. Link to comment Share on other sites More sharing options...
OuTsOo Posted April 16, 2009 Author Report Share Posted April 16, 2009 Vispirms sāc ar šo, diezgan noderīgi. Starp citu, pat pašā gign'ā var šo to noderīgu atrast. Viss par f-iju date(). Savādāk būs drusku pagrūti rediģēt kādu CMS lapu. Jāni nevaiga LINKUS DOD!!!!!!!!pasaki kā un kur un viss okey Link to comment Share on other sites More sharing options...
OuTsOo Posted April 17, 2009 Author Report Share Posted April 17, 2009 nu vot izvada liekas šis: $result = mysql_query("SELECT * FROM `amx_amxadmins` WHERE `nickname` = 'slot_user'"); if (mysql_num_rows($result) >0) { while($arr = mysql_fetch_array($result)) { echo '<tr><td>'.$arr['id'].'</td><td>'.$arr['username'].'</td><td>'.$arr['expire'].'</td></tr>'; } Un kā te date pierakstīt? Link to comment Share on other sites More sharing options...
X ID Posted April 17, 2009 Report Share Posted April 17, 2009 Klauns... date("j.m.Y H:i",$arr['expire']); Link to comment Share on other sites More sharing options...
OuTsOo Posted April 17, 2009 Author Report Share Posted April 17, 2009 date("j.m.Y H:i",$arr['expire']); Tad sanāks šādi? : $result = mysql_query("SELECT * FROM `amx_amxadmins` WHERE `nickname` = 'slot_user'"); if (mysql_num_rows($result) >0) { while($arr = mysql_fetch_array($result)) { echo '<tr><td>'.$arr['id'].'</td><td>'.$arr['username'].'date("j.m.Y H:i",$arr['expire']);'</td></tr>'; Link to comment Share on other sites More sharing options...
dimka62 Posted April 17, 2009 Report Share Posted April 17, 2009 parbaudi vai iet. Link to comment Share on other sites More sharing options...
OuTsOo Posted April 17, 2009 Author Report Share Posted April 17, 2009 Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in C:\AppServ\www\reg\index.php on line 238 Neiet Link to comment Share on other sites More sharing options...
dimka62 Posted April 17, 2009 Report Share Posted April 17, 2009 pamēģini šitā $result = mysql_query("SELECT * FROM `amx_amxadmins` WHERE `nickname` = 'slot_user'"); if (mysql_num_rows($result) >0) { while($arr = mysql_fetch_array($result)) { echo '<tr><td>'.$arr['id'].'</td><td>'.$arr['username'].'date("j.m.Y H:i",$arr['expire'])</td></tr>'; Link to comment Share on other sites More sharing options...
OuTsOo Posted April 17, 2009 Author Report Share Posted April 17, 2009 $result = mysql_query("SELECT * FROM `amx_amxadmins` WHERE `nickname` = 'slot_user'"); if (mysql_num_rows($result) >0) { while($arr = mysql_fetch_array($result)) { echo '<tr><td>'.$arr['id'].'</td><td>'.$arr['username'].'date("j.m.Y H:i",$arr['expire'])</td></tr>'; Uzrakstija šo: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in C:\AppServ\www\reg\index.php on line 238 Link to comment Share on other sites More sharing options...
dimka62 Posted April 17, 2009 Report Share Posted April 17, 2009 Atkal to pašu parādīja vai tu nemēģināji? Link to comment Share on other sites More sharing options...
OuTsOo Posted April 17, 2009 Author Report Share Posted April 17, 2009 MEģināju tavu iedoto skriptu!!!rādiju to erroru Link to comment Share on other sites More sharing options...
X ID Posted April 17, 2009 Report Share Posted April 17, 2009 Bļin, tie ir php pamati - sintakse. $result = mysql_query("SELECT * FROM `amx_amxadmins` WHERE `nickname` = 'slot_user'"); if (mysql_num_rows($result) >0) { while($arr = mysql_fetch_array($result)) { echo '<tr><td>'.$arr['id'].'</td><td>'.$arr['username'].'</td><td>'.date("j.m.Y H:i",$arr['expire']).'</td></tr>'; } Link to comment Share on other sites More sharing options...
OuTsOo Posted April 18, 2009 Author Report Share Posted April 18, 2009 man jau sanāca. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now