Jump to content

CJLeah

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

CJLeah's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. My mistake, you put date instead of data, works now. thank you
  2. <?php $sql_logs = mysql_query("SELECT * FROM logs ORDER by id DESC LIMIT 0, 25"); $logs_data = mysql_fetch_assoc($sql_logs); do { echo($logs_data['userid,username,hostname,time,type,message']); } while ($logs_data = mysql_fetch_assoc($sql_logs)); ?> hello the above code, is what i'm trying to use to show all log's in the database, it shows NO log information, just leave's it blank. Please HELP guys, thank you. Chris Leah
  3. [code]<?php $sql_users = mysql_query("SELECT * FROM users WHERE staff = 10, ORDER BY ID DESC LIMIT 0, 10"); $users = mysql_fetch_assoc($sql_users); do { ($users['username'],("view_user?=".$users['id']),"default"); } while ($users = mysql_fetch_assoc($sql_users));  ?>[/code] Above is the code i'm using to try and extract users that have a staff level of 10, but it's not working please help! Below is the error I get: Parse error: parse error, unexpected ',' in /home/tmafia/public_html/staff.php on line 14 any help?
  4. [!--quoteo(post=366172:date=Apr 18 2006, 03:24 PM:name=Caesar)--][div class=\'quotetop\']QUOTE(Caesar @ Apr 18 2006, 03:24 PM) [snapback]366172[/snapback][/div][div class=\'quotemain\'][!--quotec--] Look at my above example. And consider looking through -> [a href=\"http://www.php.net\" target=\"_blank\"]http://www.php.net[/a] ....Great source. [/quote] I have mate, but not working ..:( but i've jsut tried this also [code]<?php $result = mysql_query("SELECT COUNT(*) FROM users WHERE username = '" . $_POST['username'] . "'") or exit(mysql_error()); if (mysql_result($result, 0)) {echo $_POST['username'] . ' how are you?';} else {echo $_POST['username'] . ' is not in the database';} ?>[/code]
  5. sorry, i'm veyr new to php, but basically what i'm trying to do is, show the that users username, when he look at that page, like 'Hello USERNAME how are you?' somthing like that... that help any better?
  6. the session is saved, but it's not straight after login, even though your logged in to see it, its more of like, a paragraph of text then sayng they user name.....but I have no idea to get the users name to appear...:( eg: Yo .currentuser. how are you today, please submit the scriptcheck before proceeding..
  7. I'm having trouble wit a code, i'm quite sure is wrong, what I want is a code that will show the current user, eg Hello Chris. ANyway whats wrong with mine, or whats right, lol. please help :) <?php mysql_query("SELECT username FROM users"); echo ($_POST['username']); ?>
  8. I'm having trouble wit a code, i'm quite sure is wrong, what I want is a code that will show the current user, eg Hello Chris. ANyway whats wrong with mine, or whats right, lol. please help :) <?php mysql_query("SELECT username FROM users"); echo ($_POST['username']); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.