Jump to content

.josh

Staff Alumni
  • Posts

    14,780
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by .josh

  1. Riiiight...so you explain yourself to the OP, not the staff. Makes perfect sense.
  2. Well you obviously saw merit in the idea that it could be taken that way, seeing as how you felt the need to explain yourself later on.
  3. you're doing the math wrong. With powers of 2, it's 2 multiplied by itself a certain number of times. So for instance, a 4 pin connector would have 2 * 2 * 2 * 2 = 16 colors. 1 : 2 2 : 4 3 : 8 4 : 16 5 : 32 6 : 64 7 : 128 8 : 256 9 : 512 10 : 1024 11 : 2048 12 : 4096 13 : 8192 14 : 16384 15 : 32768 16 : 65536 17 : 131072 18 : 262144 19 : 524288 20 : 1048576 21 : 2097152 22 : 4194304 23 : 8388608 24 : 16777216 25 : 33554432 26 : 67108864 27 : 134217728 28 : 268435456 29 : 536870912 30 : 1073741824 31 : 2147483648 32 : 4294967296
  4. OP: Please note that it was not my intention to seem insulting. Oh really...then what was your intention, because I'm having a real hard time figuring out what other intention you could have had.
  5. .josh

    Zend

    Okay seriously, this is getting out of hand. You asked an ambiguous question. People responded by asking for clarification, not by making out like elitist dickheads. At no point in time was anybody like "omg you are retarded you can't ask a question right you noob" or however you think elitist dickheadism goes. Then you started getting all pissy because we aren't mind readers, and even more pissy when people started calling you out on being pissy about it. This thread is closed.
  6. .josh

    Zend

    stfu you snobby elitist.
  7. Something like this? $page = $_REQUEST['page']; if(!isset($page)){ $page = "1"; } else { $start = ($page - 1) * 25; $end = $start + 25; }
  8. I smell scam. I think you're about to be the proud owner of a bunch of computers, obligated to pay someone for them.
  9. .josh

    Zend

    I could be talking about programming in VB. I could have obviously meant sitting in front of my TV playing my xbox. Oh wait, that's not so obvious a deduction...and neither is yours. Just because you fail to see the similarity doesn't mean it's false. The point you are failing to see is that Zend is a company that offers several products and they are all programmer related, from certification courses to frameworks to optimizers to obfuscators. My microsoft analogy is even more ambiguous because they do offer products and services that are not programmer related. But if anything, that's a success, not a failure, as far as analogies go. You should have been able to see the ambiguity in that statement because it's bigger, and apply it on the smaller level of Zend. The goal here was for you to understand the concept of ambiguity. No, we were not able to understand what you were talking about. Because you were being ambiguous.
  10. .josh

    Zend

    Yes... I meant using Zend as a company... in my code.... o_O I think you knew what I meant. If I'm telling you that I only started using Zend, what do you think I'm talking about? If I said I was using Microsoft, what do you think I'd be talking about?
  11. .josh

    Zend

    Maybe he typoed and was asking if it was worth practicing Zen?
  12. Really? I mean, I admit that I don't really know a whole lot about encryption algorithms, but it seems logical to me for them not to rely on factoring large numbers, as that can be easily circumvented with rainbow tables... perhaps you are confusing factors with number of possibilities through factorials? I could be totally talking out my ass, so feel free to correct me.
  13. "Session clashes" are not something to be concerned about. The server automatically does that for you. The concern about sessions on shared servers is security: that is, poorly setup servers allowing other people on your shared server to gain access to your IDs.
  14. .josh

    Zend

    Other than the fact that several of the core developers of php runs the company? I think that in and of itself makes a pretty strong case....
  15. Nothing compared to the ones that come here upset lol. Haha actually....I think there's a direct correlation between those who walk in the door unhappy and turn around and leave unhappy...
  16. Try this: <?php $con = mysql_connect("localhost","root","password") or die("Error connecting!"); $db = mysql_select_db("this_db") or die("Couldn't find the DB"); $sql = "SELECT * FROM users WHERE id <= '10'"; // this is going to get info from id 1 to 10, right? $result = mysql_query($sql) or die(mysql_error()); echo "username password email <br />"; while ($samoi = mysql_fetch_assoc($result)) { echo $samoi['username']; echo " "; echo $samoi['password']; echo " "; echo $samoi['email']; echo "<br />"; } ?>
  17. Since you have to run a loop on the elements anyways, may as well just nix the array_slice, IMO.
  18. Okay so basically what you need to do is instead of echoing $out, you need to store it in a session array, and from there, the pagination principles are pretty much the same. Instead of counting how many rows are in a database, you'd count how many elements are in the array. Instead of selecting x rows starting at an offset, you'd select x elements starting at the same offset. Instead of using a while loop to cycle through a fetch_blah, you'd use a regular loop that starts at the offset element, ends at offset+limit. You'd dynamically build links, passing the variable(s) through the URL just the same, and you'd echo out the page numbers just the same.
  19. You'd be surprised how many people leave here upset.
  20. Sorry to hear that you're sick of the manual...it should receive some kind of award for best manual ever written (it probably has, multiple times).
  21. if you only plan on calling it once, then there's no advantage whatsoever. The point in putting something in a function is if you have a chunk of code being used over and over, you can just put a label on it and call the label.
  22. Look at the attached screenshot. You will notice that first off, you are trying to insert more values than you have columns, and 2nd, you aren't doing them in the right order. [attachment deleted by admin]
  23. You would make a form with a text field and a submit button. From there, it depends on how you store your information and what you're searching for.
×
×
  • 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.