Jump to content

V-Man

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Posts posted by V-Man

  1. Totally random, but what the hell

     

    I built a computer recently and have Tri-SLI enabled in the nVidia control panel.  But, Steam and the Club-SLI App tell me that SLI is not enabled.  Anyone have ideas?  Would PC specs be useful?

  2. Hey guys,

    It's been a while since I last posted.  I now have a somewhat odd question but I really need a deffiniate answer.

     

    I have recently changed my windows PW (and being a computer nerd, obviously did not create a rescue disc) and have since forgotten it.  I have the ntuser.dat file and the whole registry from a month ago on CD.  How do I go about finding my old PW?  Im pretty sure that its encrypted as a binary string of characters somewhere in the registry, but am totally at a loss as to where to look.

     

    Anyone know how to go about doing this?

     

    -Pat

  3. Agreed. For a log (a good one) you're going to need a databse to store user names and passwords, and other misc info you might want to collect about them.  On top of that, youll need to write a register script and then an admin script of some sort.  The best thing to do is go pick up a PHP book and start looking at the MySQL examples.  If you know HTML, you should be able to pick PHP up pretty fast.

  4. Alright, Maybe I'm going about this all wrong.  I need to get a table to take up the whole page regardless of wether there is content to fill it or not.  The code I have thus far is:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <link rel="stylesheet" href="style.css" type="text/css">
    <style type="text/css">
    </style>
    </head>
    
    <body leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0' marginheight='0' marginwidth='0'>
    <table width="739" height="240" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="20" background="images/left_grad.jpg"> </td>
        <td width="699" background="images/header.jpg" valign="bottom">
    
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="76%" height="188"><div align="center" class="title">
              <p>Champlain Valley Outfitters </p>
              <p class="nav">Offering only the best <br />
                in traditional waterfowl hunts </p>
            </div></td>
            <td width="24%"> </td>
          </tr>
          <tr>
            <td height="26" colspan="2" class="nav"> <div align="center">:: Home :: Services :: Articles :: Recipes :: Guest Book :: Contact Us :: </div></td>
            </tr>
        </table></td>
        <td width="20" background="images/right_grad.jpg"> </td>
      </tr>
    </table>
    
    <table width="739" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="20" background="images/left_grad.jpg"> </td>
        <td width="699" background="images/bot_grad.jpg"> </td>
        <td width="20" background="images/right_grad.jpg"> </td>
      </tr>
    </table>
    
    <table width="739" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="20" background="images/left_grad.jpg"> </td>
        <td width="699" background="images/bot_grad.jpg"><div align="center" class="copyright">© 2008 Champlain Valley Outfitters <br />Site designed and maintained by Pat Litke in conjunction with MDM Solutions</div></td>
        <td width="20" background="images/right_grad.jpg"> </td>
      </tr>
    </table>
    </body>
    </html>
    

     

    I thought by setting the center table height to 100% would make it .. well, you know, 100% of the page height.  But no.  The closest example that I can find of what I need (though, NOT full page width, a fixed width of 739 w/ a column down each side thats 20px wide) is located:  here

     

    Is this making sense?  On the example I linked above, see how the footer is at the bottom of the page no matter what?  Thats what I need to do.  ..

  5. Hey guys, It's been ages!

     

    Alright, Im just now getting back into PHPing and have found my self in a slump.  Here's what I want to do.

     

    Select all the rows out of a table (this will be five, as all others will be deleted) and display them with the text and the user that posted it.  Im coding a shout box for my guild website.

     

    Heres what I have so far.  And yes, my session based login works already and the variables pass correctly.

     

    the SQL table that i set up

    CREATE TABLE `shout` (
      `id` mediumint( unsigned NOT NULL default '0',
      `text` varchar(40) NOT NULL default '',
      `user` varchar(32) NOT NULL default '',
      `shown` int(1) NOT NULL default '1',
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    

     

    Now, I know what I need to do:

    select the rows, display them like so:

     

     

     

    "blah blah blah blah",

    --{the username}

     

    "blah blah blah blah",

    --{the username}

     

     

     

     

    That's what I need to do.  But I can't for the life of my remember how to do it.  Any suggestions?

  6. Take a look at the for() and while() loops. See the PHP manual as well as the tutorials here at PHP Freaks. You might also try googling 'PHP + For Loops'

    Cheers.
    Pat
  7. The code was fine, and the script executed fine. The only thing that was not working right was the displaying of the number of errors (I only want the variable counted if it hold a value) and then displaying the actual error.

    Thanks toplay. I have read about count and arrays. Though I have never used them, I thought I would give them a shot. I can't for the life of me understand or come up with a way to make this work. Shall I post the whole script?
  8. [!--quoteo(post=373389:date=May 12 2006, 10:29 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ May 12 2006, 10:29 PM) [snapback]373389[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    [code]
    Well, I am playing with variables, and I need some help.

    CODE
            $error = array(
                "fname_err" => $fname_err,
                "lname_err" => $lname_err,
                "email_err" => $email_err,
                "type_err" => $type_err,
                "message_err" => $message_err);
                
            $error_ech = (!$error['fname_err'] || $error['lname_err'] || $error['email_err'] || $error['type_err'] || $error['message_err']);
            
            $num_errs = count($error);
            
            
            echo("<p>There were ".$num_errs." errors processing your submission.</p>");
            echo("<font color=\"red\" size=\"2\">");
            echo($error_ech);
            echo("</font>");
    [/code]
    Try that ok
    [/quote]

    Nope. Same thing. I get the same stuff echoed.

    Try it for your self. www.minvera-fx.com/cvgs/contact.php
  9. Well, I am playing with variables, and I need some help.

    [code]
            $error = array(
                "fname_err" => $fname_err,
                "lname_err" => $lname_err,
                "email_err" => $email_err,
                "type_err" => $type_err,
                "message_err" => $message_err);
                
            $error_ech = ($error['fname_err'] || $error['lname_err'] || $error['email_err'] || $error['type_err'] || $error['message_err']);
            
            $num_errs = count($error);
            
            
            echo("<p>There were ".$num_errs." errors processing your submission.</p>");
            echo("<font color=\"red\" size=\"2\">");
            echo($error_ech);
            echo("</font>");
    [/code]

    What I want to happen, is tell the number of errors, assuming the variable has something in it (theyre defined above this piece of code as NULL) and then output the errors that DO have values. Please help. This is all I get so far.

    [code]
    There were 5 errors processing your submission. -- Says this even when fields with no errors are filled in..
    1 -- this is all it says, ever... this should the errors them selves...
    [/code]
  10. Nice spot, but thats just naming the HTML form element. With my current setup, I am not able to pass info into the select list to populate it because of my SQL. It's not finding something Im thinking... Ideas anybody?
  11. Sure, it's been asked before, but I still don't get it. Can I get some help?

    [code]
    <?php

    define('IN_MINVERA', TRUE);

    $type = $_GET['type'];
    include("includes/db.php");
    db_connect();
      
    $sql = "SELECT title FROM articles WHERE type = $type";

    $result = mysql_query($sql)
              or die('Query failed. ' . mysql_error());

    if (mysql_num_rows($result) == 1)
    {
        while ($row = mysql_fetch_array($result))
        {        
        $title = $row['title'];
        ?>
        <select name="">
        <?php echo("<option value='$title'>$title</option>"); ?>
        </select>
        <?php
        }
    }
        
    ?>
    [/code]

    Thats the code. When ?type=blablabla (happens to be om_article) I get the following error:
    Query failed. Unknown column 'om_article' in 'where clause'

    SQL table is set up as following:
    [code]
    CREATE TABLE `articles` (
      `article_id` tinyint(10) unsigned NOT NULL auto_increment,
      `title` varchar(200) default '0',
      `type` varchar(200) default '0',
      `dop` varchar(20) default '0',
      `content` text,
      PRIMARY KEY  (`article_id`)
    ) TYPE=MyISAM AUTO_INCREMENT=29;
    [/code]
  12. [!--quoteo(post=369673:date=Apr 28 2006, 03:30 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Apr 28 2006, 03:30 PM) [snapback]369673[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    That's kind of a poor way to go about it. All you have to do is check to see if the reference is in the database already and if it is, just run an update:
    UPDATE misc SET hits = hits + 1 WHERE ref = 'whatever'; <-- literally like that except for changing the "whatever" variable

    If it's not already in the table, you'll want to do insert a new record.
    [/quote]


    Thanks. I tried that and got nothing but errors. THank thougs. Ill try just what you have again. See how that goes. Thanks Ober.

    Solved
×
×
  • 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.