Jump to content

requinix

Administrators
  • Posts

    15,227
  • Joined

  • Last visited

  • Days Won

    427

Everything posted by requinix

  1. Correction: on or after. The JOIN is supposed to check if the next row is not usable.
  2. What I said before still works, just constrain it by the lower LotNumber limit (on the first table) and the date on the second table being before the date you want.
  3. What does var_dump($serial->flush()); after you sendMessage() output?
  4. Hmm. You can do a LEFT JOIN from the table back onto itself looking at the current lot number + 1, and if the other side is NULL then there's no matching row and you can return the number + 1. SELECT one.LotNumber + 1 FROM lots one LEFT JOIN lots two ON one.LotNumber + 1 = two.LotNumber WHERE two.LotNumber IS NULL ORDER BY one.LotNumber ASC LIMIT 1 Give or take.
  5. "Click"? What are you clicking? As for flushing, sendMessage() will do that unless you specifically turn off autoflush (which you don't).
  6. You don't get the password back. What you do is hash the login password and compare that hash against what you stored in the database.
  7. ext\ should not be empty. There should be quite a few files in there, and php_gd2.dll should be there too. Four php.ini files you say? You need to figure out which of those matter. Figure out how many installations of PHP you have. And remove the ones you don't want.
  8. You sure it's COM7 and with those settings? If you don't have a better tool installed, I think you can test COM7 by running C:\>copy con com7 ^Z from cmd. (The ^Z is Ctrl+Z.) That probably won't do exactly what you need but it should tell you whether COM7 works.
  9. CSS 3 lets you adapt your site according to the browser. That's a better tool than trying to detect the device and actually alter the pages.
  10. Y2K38
  11. I assume you're using this? How about showing us more code? Specifically stuff dealing with $serial.
  12. Are you giving focus to the textboxes when they're created? If not then that would explain why onblur isn't firing: there was no focus to lose in the first place.
  13. You already have something running on port 80 (but that netstat output doesn't say what - use the -b flag to include the program name). Do you see anything at http://localhost?
  14. You say "comment" in one place and "lcomment" in another. Are you sure you're using the right one? Normally you would use whatever quoting style you want. Single or double doesn't matter.
  15. Not the same thing. OP seems to want to include PHP code while yours will output whatever the script outputs.
  16. What is the error code from the upload? It's in $_FILES["whatever"]["error"].
  17. /1245ady works? I'm surprised. Maybe it's looking up the user account based on the integer value of the username? Also I think when you say "page does not exist" you mean to say "user does not exist". Big difference there. Your original URL /user.php?u_id=1245&username=ady doesn't match up with what you're rewriting to /user.php?username=ady You lost the u_id. Two options: 1. Include the u_id in the friendly URL so that you can pass it to user.php in the rewriting 2. Alter user.php so that it doesn't require the u_id and can find users based on the username alone
  18. Move everything into a one-dimensional array then array_chunk it.
  19. So you understand, this is perfectly normal behavior: [0] is the entire string matched and [1] is what was captured by the first set of parentheses (first set that captures, that is). The [1] is coming from the (\b\w+). Just remove the parentheses.
  20. I can't figure out the error either. Probably because you didn't tell us what it is.
  21. Are you running PHP >=5.3.15 or >=5.4.5? COM isn't built-in anymore - you need the php_com_dotnet.dll extension enabled.
  22. Exactly what I said. I guess you understood the word "stop" to mean "prevent these people from reaching your site". The RewriteCond is a condition attached to a RewriteRule. When true then the Rule will execute and when not the Rule will not. So now your task is to write a RewriteRule that does what you want it to do.
  23. SELECT * FROM table WHERE email = "the email address" The address is unique, right?
  24. Use an array instead.
  25. HTTP_REFERER is what you'll want to use. Note that it's not perfect but will stop most people clicking on these hypothetical links. RewriteCond %{HTTP_REFERER} ^http://domain.com/ # RewriteRule blah blah blah
×
×
  • 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.