Hiya ok I received a parse error I tried to see what it was but couldn't I'm probably going blind!
PHP Code:mysql_query("UPDATE `tblmembers` SET `status`='$status' WHERE `userID`='$id'");
header('Location: '.$_SERVER["PHP_SELF"]);
}
else {
Hiya ok I received a parse error I tried to see what it was but couldn't I'm probably going blind!
PHP Code:mysql_query("UPDATE `tblmembers` SET `status`='$status' WHERE `userID`='$id'");
header('Location: '.$_SERVER["PHP_SELF"]);
}
else {
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Hiya a parse error I can't seem to find it ug!
Parse error: parse error, expecting `']'' in e:\showMembers.php on line 94
PHP Parse error: parse error, expecting `']'' in e:\showMembers.php on line 94
That has to do with this line:
I forgot about the quote. Hope this helps.Code:elseif ($_REQUEST['act'] == "edit") { $id = $_REQUEST['id']; $status = $_REQUEST['status'];
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Ahhhhh great! For some reason the loginDateTime are all equal to 1-1-1970, I can understand that happening for users who haven't logged in yet but all the Approved users are equal to that... I added this line
but this gives me the following errorPHP Code:<?php echo date('d-m-Y', $q['loginDateTime']):'unknown';?>
Parse error: parse error, expecting `','' or `';'' in e:\showMembers.php on line 179
PHP Parse error: parse error, expecting `','' or `';'' in e:\showMembers.php on line 179
This:
makes no sense. Does your loginDateTime column (in your database) have the values as a unix timestamp (like 1175581024), or is it text (Jan 12, 2008)? If the first, then this should work:Code:<?php echo date('d-m-Y', $q['loginDateTime']):'unknown';?>
Otherwise, try using this:Code:<?php echo date('d-m-Y', $q['loginDateTime']);?>
Hope this helps.Code:<?php echo date('d-m-Y', strtotime($q['loginDateTime']));?>
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Hiya, in the database the fields look like this
I added this code as I had this before, what it did was displayed the date/time a user had logged in and if they hadn't logged in since I added the loginDateTime column to the datatabase that field in the table was just populated with 'unknown'... But they are all unknown and looking into the datatbase I can see quite a few that have logged in
PHP Code:<?php echo($qry['loginDateTime']?date('d/m/Y H:i:s', strtotime($qry['loginDateTime'])):'unknown') ?>
What if you just do:
See what it displays (if anything) and if you would like, go ahead and send me a screenshot. Not sure what else there is to say, but the code that is posted in one of my posts above should work.Code:<?php echo $qry['loginDateTime'];?>
Hope this helps.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
I sent you the screenshot, my very original page before all the sorting had that code too and it worked, It's wierd... Could it be to do with the sort feature?
Bookmarks