Jump to content
GIGN Forum

Timestamp


OuTsOo
 Share

Recommended Posts

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

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

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

$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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...