Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: DonP
  • Order by date
  1. DonP

    Between

    Is MySQL's BETWEEN inclusive? For example, will this give me the whole year of will it be missing a day on either end? $TransactionYear = date("Y")."-1-1"; $YearEnd = date("Y")."-12-31"; $DSWhere = "InvoiceDate BETWEEN '".$TransactionYear."' AND '".$YearEnd."'"; Don...
  2. DonP

    Limiting Numeric Value in Input

    Thanks again but again, it needs to be done in JavaScript. I need it to be instantanteous rather than having to submit the form to discover the error. What I want is for the user to be unable to enter any number higher than the quantity on-hand. Most of the people who use this site are not...
  3. DonP

    Limiting Numeric Value in Input

    Thanks and I thought of that before posting originally but no, I prefer to do it in JavaScript and it seems it would be a simple thing. If a visitor has JavaScript disabled, I might make it use PHP as a standby but I don't want it to be the default. Don http://www.pc-homepage.com/...
  4. DonP

    Limiting Numeric Value in Input

    There is no security issue here as this form has no personal information and is not secure anyway. I sell rare and out of print items where I have only a few of each. I need to prevent someone from trying to order more items than I have by doing a database lookup (in PHP) of the quantity...
  5. DonP

    Limiting Numeric Value in Input

    Thanks, I'll check it out more closely tomorrow. Looking at it briefly, it's not clear what I would do with keycodes since there is no specific code that I need. I used the values of 1, 2 and 3 just as an example but really it could be any number at all as the maximum for a given entry. There...
  6. DonP

    Limiting Numeric Value in Input

    Thanks. Sounds easy but I'm not a JavaScript programmer at all so I have no clue how to do it! Actually the validation is in an external file and I need to call the function by passing the maximum number to it something like this: $output[] = '<input type="text" name="qty'.$ItemID.'"...
  7. DonP

    Limiting Numeric Value in Input

    In a form, I want to limit the numeric value that can be entered. For example, on a given entry, 1 or 2 can be entered but not 3. I already added a function to make it numeric-only but I have nothing at all for limiting the value, which will from be a PHP variable. Any ideas? Don...
  8. DonP

    Viruses Removed but no Boot

    Thanks, that's what I suspected. The computer is in central Oregon and I am in California but I'll be going up there shortly and might have to work on it then (it's my sister's computer who has little income for shipping the tower). I couldn't run the repair reinstall because I couldn't boot to...
  9. DonP

    Viruses Removed but no Boot

    Thanks! I tried some of the ideas but as I do not have a system with a diskette drive, I was not able to create a boot diskette. This might be a good time to create a boot CD-ROM, though. The only way I can get to the drive right now is by connecting it externally via a USB chassis so I can do...
  10. DonP

    Viruses Removed but no Boot

    After thoroughly cleaning a drive that was badly infected by multiple viruses, I am trying to test it before sending it back the person whose drive it is. I know there are issues in booting a drive in another system but I thought it would at least boot up without high-res video and without other...
  11. DonP

    Getting Dynamic Page Contents

    I should be able to program it to do so but isn't that a security issue? On the other hand, presuming that I could somehow get Curl onto the server, I have never used it before so what do I need to do to the function in order for it to work? I've never used Curl before but it sounds like it...
  12. DonP

    Getting Dynamic Page Contents

    What I am seeing is that apparently fsockopen() is working but something in the function is causing it to lose the session so it starts a new one. The new one triggers the login page which is all I can get through the function in IIS. On my other Linux server, this does not seem to be an issue...
  13. DonP

    Getting Dynamic Page Contents

    I am reasonably sure that the problem is to do with fsockopen() as it does not appear to be compatible with IIS. However, fopen() does no better. Are there any thoughts on this? $h = fsockopen($host,80); //$h = fopen("http://".$host."/index.php".$query); fwrite($h, $post); for($a = 0...
  14. DonP

    Getting Dynamic Page Contents

    Thanks, yes, I have already done that. CURL is here on my development system but it is not on the server and I do not have access to put it there. I use this code to create printable versions of pages and it works without reguard to the original page script, database or SQL by grabbing the...
  15. DonP

    Getting Dynamic Page Contents

    Possibly, although I tried another function that used it and got nowhere. I am working currently on a Windows XP development system but I am not sure that CURL is part of the actual server's configuration, unless it is a standard part of PHP 5's installation. Otherwise I know less than nothing...
  16. DonP

    Getting Dynamic Page Contents

    I think this function (from php.net) might do what I need, however, it seems to try to open the page in a new session rather than keeping the existing one. Is there a way around this? Just to be clear, what I am trying to do it to grab the resulting dynamic HTML, not load the page itself into...
  17. DonP

    Getting Dynamic Page Contents

    Thanks, you're right. Changed to $r it outputs: HTTP/1.1 100 Continue Server: Microsoft-IIS/5.1 Date: Mon, 23 Apr 2007 17:29:24 GMT HTTP/1.1 405 Method not allowed Server: Microsoft-IIS/5.1 Date: Mon, 23 Apr 2007 17:29:24 GMT Connection: close Allow: OPTIONS, TRACE, GET, HEAD Content-Length...
  18. DonP

    Getting Dynamic Page Contents

    After trying several variations and researching on php.net (the search engine is still dead on tek-tips), I am now getting only "Resource id #53" when echoing to the screen. Also, it appears that the explode()/implode() functions are there because the code was expecting a full path, not just...
  19. DonP

    Getting Dynamic Page Contents

    Thanks for the idea but I had tried that already at some point. It gives errors on fsockopen() with the errors: "No such host is known" and "unable to connect to localhost/index.php:80 (Unknown error)". For fwrite(), fread() and fclose() the error is "supplied argument is not a valid stream...
  20. DonP

    Getting Dynamic Page Contents

    Makes sense and yes that's the error although it's not clear to me why it needs to explode() or implode() at all. Feeding the function: PrintVersionPath = localhost PrintVersionParam = /index.php?TabID=6 should eliminate the need, shouldn't it? That said, I simplified the function to...

Part and Inventory Search

Back
Top