Jump to content

ober

Staff Alumni
  • Posts

    5,327
  • Joined

  • Last visited

Posts posted by ober

  1. Alright... a few issues:

    1) you don't have to use session_register(). Just use $_SESSION['var_name'] = x;

    2) }else if( ! $name|| $password) won't work. $name and $password are not boolean variables. And I assume you want to fail that if when $password is blank as well.... right now it passes if $password is true. And you never compare the database results to what is passed from the form. How do you think authentication works!?!?
  2. [a href=\"http://www.grisoft.com/doc/SmallAndMedium/lng/us/tpl/tpl01\" target=\"_blank\"]http://www.grisoft.com/doc/SmallAndMedium/lng/us/tpl/tpl01[/a]

    AVG is the way to go, IMO. I wouldn't trust McAfee any farther than I could throw them and Symantec has been ok here where I work, but I honestly feel like Grisoft makes a better product and will cost you less in the long run.
  3. You can download and install PHP and Apache on your computer to test your scripts and you can use a text editor or something like PHP Developer 2005 or 2006 to develop the code. But yes, you'll need a host that has PHP on it to run PHP scripts.
  4. May I ask what is taking so long? What are you possibly doing that would take 6 minutes to process on the database?

    And are you starting the sending of the script every 60 seconds? You really need to change the execution time in the php.ini file.
  5. All you have to do is add a counter variable to the loop. I'm going to modify your code, because do-while loops aren't the normal or preferred way of looping through a recordset... because it will ALWAYS do one before checking the condition and I'm not sure how you're getting your first record that way either... and for that matter, you're jumping in and out of PHP tags FAR too often:
    [code]<?php
    if($Recordset1 && mysql_num_rows($Recordset1) > 0)
    {
    $counter = 0;
    while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));  
    {
         if(++$counter == 12)
         {
              echo '<span class="breaker"></span>';
              $counter = 0;
         }
         extract($row_Recordset1);
    ?>
    <div class="employee">
    <p>
    <img src="images/<?=$firstname?>_<?=$lastname?>.jpg" width="140" height="140" /><br />
    <?php

    echo "$firstname<br />
             $lastname<br />
             $office<br />
             $phone</p>"; ?>
    </div>

    <?php }
    }
    ?>[/code]

  6. I'm not sure I understand how the code you posted relates to the problem.

    Everytime you run that script, you should just add in another query to check the stock level and if the results of the query match your level... you echo a message.

    Maybe you can explain the problem a little more?
  7. Hmm... double posting. Yeah, that's against forum guidelines. If you want it moved to this board, that can be done, but please don't double post. You can bump your old thread if it hasn't been answered or PM me to have it moved to here.

    Thread Closed.
  8. Everyone has their own personal tastes, but I think a lot of what people post on this critique board is technical stuff (how the site works, whether it uses mailto vs a contact form, etc.). And certain fonts are just bad ideas... you want the site to be readable, easy to navigate, and have a good flow. The rest is just graphics and making the site appeal to the general public.

    However, if you're finding that what you like is the complete opposite of what everyone else is saying, maybe you're in wrong business. Some people just have a knack for this stuff. It's all about style... people like jcombs have it and they know how to produce it. I'm pretty much a hack when it comes to style, but I'd like to think I know what works and what doesn't.

    EDIT: for example... you obviously don't care about paragraphs and making sure your spelling is ok when you post on a forum. I do. It's little things like that that set us apart.
  9. I don't understand your layout whatsoever. The banner image is fixed width... and it's stretched to all hell so it looks like garbage. The font you're using is horrid and hard to read. And there's no styling otherwise to speak of. Work on the CSS and pick either fixed width or full and then get back to us.

    And I'm not sure what Javascript you're talking about, because what you have right now shouldn't require ANY javascript.
  10. If you find someone posting something inappropriate or spamming the forums, hit the "Report" button under the post. One of the mods will see it and take care of it.

    If it goes on long enough, they'll be banned.
×
×
  • 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.