Jump to content

KevinM1

Moderators
  • Posts

    5,222
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by KevinM1

  1. There are plenty of free services out there or at least trial periods: http://www.justcloud.com/ I have 2.2GB of cloud storage for free w/ Dropbox.
  2. Please look at the date of the thread you're replying to. This conversation has been over since last summer.
  3. This topic has been moved to Application Frameworks. http://www.phpfreaks.com/forums/index.php?topic=354697.0
  4. I don't understand why this needs to be done in VB. Everything you want can be done in PHP w/ a database as the store for all the leads.
  5. What's the error message you're getting?
  6. How did you make fire? Through the sheer force of will.
  7. Nested for-loops are probably best explained with two dimensional arrays. Assume you have an array like: $twoDimArr = array(1 => array(1, 2, 3, 4, 5), 2 => array(1, 2, 3, 4, 5), 3 => array(1, 2, 3, 4, 5), 4 => array(1, 2, 3, 4, 5), 5 => array(1, 2, 3, 4, 5)); // NOTE: The outer array's keys explicitly start at 1. ALL inner/nested array keys start at 0 in this example We can visualize this structure as a 5x5 table: 1 2 3 4 5 1 2 3 4 5 PHP (and other languages) treat two dimensional arrays as row-ordered. So, when you do something like: echo $twoDimArr[2][3]; You access the row at key 2, then the column at key 3 of that row. Or: 1 2 3 4 5 1 2 x 3 4 5 Which is 4 because, again, the inner array's keys start at 0. So key 3 is the fourth element in that array. When you have nested for-loops, the row-ordering is still in play. So, something like: for ($i = 1; $i < 6; ++$i) { for ($j = 0; $j < 5; ++$j) { echo $twoDimArr[$i][$j]; if ($j == 4) { echo "<br />"; } } } Will output the arrays row by row. $j accesses the columns, and $i accesses the rows.
  8. Global = bad, pure and simple. The whole point behind functions is that they're general purpose, reusable, encapsulated processes that can be used in a variety of contexts. Global ties code to a particular context, thereby eliminating both reuse and encapsulation. If you need a parameter from the external scope in your function, pass it through the function's argument list. That's why it's there.
  9. IMO, a search only makes sense if you have a lot of content on specific, discrete topics. Things that would be archived, or naturally left behind due to new content replacing it. This falls into the "Don't add things just for the hell of it because other sites have them" category. I think you could remove the FAQ and testimonial links from the body of your main page entirely. You have links to both in your main navigation, and a handful of testimonials in the right side column, too. I'm not sure that the rounded boxes are the best idea. It works for the testimonials column, but it really highlights how jumbled the content is. I'm getting a Tetris vibe from it all right now. I'm not sure if it's just a matter of there being too many boxes, or the actual layout of the content. Play with it, see if you can make it a bit less chaotic. Maybe see if you can consolidate some of the boxes into one.
  10. This topic has been moved to Other Programming Languages. http://www.phpfreaks.com/forums/index.php?topic=354391.0
  11. Why are you asking for help in Excel in the PHP Coding Help section of the forum? Moved.
  12. It won't work because that's not valid PHP. You need to do: if ($F29 >= 400) { echo "A"; } elseif ($F29 >= 200) { echo "B"; } elseif ($F29 >= 100) { echo "C"; } else { echo "Fail"; } For more info on conditionals in PHP, look at: http://php.net/manual/en/control-structures.if.php
  13. Read the link in my signature for why w3schools sucks. And here's a better client side resource: https://developer.mozilla.org/en-US/learn/
  14. There's definitely a fine line between being helpful and just getting in the way. I think we've all crossed that line many times, especially when we first started out. I know I did. The best advice I can give is to focus on quality responses rather than being the first one to answer a question. If you're not sure about something, take the time to either look it up (if it's simple), or ask the community. Chances are, your post count will slow, but you'll learn just as much, if not more, as you'll be doing the research/test code on your own anyway. After a while, you'll hit the tipping point and be able to rattle off more accurate answers with ease. So, tldr: Quality > quantity. Keep with it.
  15. Making another account would be a bad idea. See rule 15: http://www.phpfreaks.com/page/rules-and-terms-of-service
  16. Fairly or unfairly, we do take into consideration a member's post count and time spent here into consideration when it comes to our replies. Generally speaking, if someone has been here for 3.5 years and has 700+ posts, we assume they've progressed to the point where the difference between single and double-quoted strings is no longer a mystery to them. Similarly, we assume they have an understanding of how conditional statements (if/else) and sessions work, and how they can be used together.
  17. Really... I can read it really clearly. It makes it look blurry to me. Then again, I'm not a fan of drop shadows anyway.
  18. Why not do this with straight CSS? img { max-width: 560px; } Or, if that negatively affects other, non-user-supplied images, add a class to them and adjust accordingly (pseudo-code): while($row = mysql_fetch_assoc($result)) { echo "<img src=\"{$row['img']}\" class=\"user-image\" />"; } .user-image { max-width: 560px; } The point is that manipulating the DOM with PHP is almost always the bad way to go. Setting an element's width is the job of CSS. Add a rule to your external stylesheet (you are using an external CSS file, right? Inline styles are a clear sign of doing it wrong ), and go from there.
  19. I'm not a fan of the burgundy text w/ drop shadow. It's hard to read on a 1440x900 monitor. Ditch the PDF food menu and code up a new one yourself. The existing yellow PDF doesn't fit with the rest of the site at all. Make it look like the 'Specials' menu.
  20. Error's back.
  21. About a year ago I saw a post by Larry Ullman on his forum and to me it insinuated that he was embarrassed because he had used php6 in the title of one of his books. I guess it's a competitive business and trying to be the first one out of the block with a php6 book was a gamble that went bad. It wasn't just him. There were several books that had PHP 6 in their titles. For a time, it looked like 6 was fairly imminent (several months away), but then Zend decided that the planned changes weren't enough to warrant a new version, and that they'd be rolled into 5. I think it was a good decision. Most of the changes were simply additions to the existing OO capabilities of the language (late static binding, namespaces, the upcoming traits), and some bookkeeping (slowly doing away with register_globals).
  22. Just be aware that PHP 6 does not exist. All of its features have been added (or will be added) in 5.3+.
  23. Red looks nice on ya.
  24. You optimize your class by not stuffing all of your code into just one class. You're not gaining anything by doing that, and you're certainly not writing OO code, despite using a class/object. Before you go any further with OOP, you should try to learn the basics of the methodology. Start here: http://www.amazon.com/Objects-Patterns-Practice-Experts-Source/dp/143022925X/ref=sr_1_1?s=books&ie=UTF8&qid=1329587873&sr=1-1
×
×
  • 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.