Jump to content

ober

Staff Alumni
  • Posts

    5,327
  • Joined

  • Last visited

Everything posted by ober

  1. You're going to have to explain yourself a little better. What are you trying to achieve? And if your crawler is smart enough to submit forms, you can certainly crawl whatever is past the authentication.
  2. That's kind of a poor way to go about it. All you have to do is check to see if the reference is in the database already and if it is, just run an update: UPDATE misc SET hits = hits + 1 WHERE ref = 'whatever'; <-- literally like that except for changing the "whatever" variable If it's not already in the table, you'll want to do insert a new record.
  3. I'd suggest using AJAX. And I don't see the problem with using POST arrays. If your issue is using links vs. buttons to move to the next page, you can call a javascript submit through the link.
  4. Just in case anyone else ever digs this thread back up or searches for it, I did find an answer: [a href=\"http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=850&lngWId=5\" target=\"_blank\"]http://www.planet-source-code.com/vb/scrip...Id=850&lngWId=5[/a] I modified it to fit my application and it works like a charm. Obviously it's very bloated compared to the LIMIT clause, but it works.
  5. Well, I can see one major problem right off the bat. Your WHERE clause in the SQL statement must come AFTER the SET clause.
  6. Spend some time with this website... hopefully it'll help you: [a href=\"http://www.regular-expressions.net/\" target=\"_blank\"]http://www.regular-expressions.net/[/a]
  7. Not that I'm aware of. You'll have to write your own.
  8. PHP is a SERVER SIDE SCRIPTING LANGUAGE. That means that any sound you want to play, or layout problems you may have must be handled by either HTML, CSS, or Javascript.
  9. date("h:i A", strtotime($record['date_column'])) Look up the date function in the manual for variations of the date formatting.
  10. Functions normally only return one item. However, I believe you could return an array of items. You may also want to look into a class for returning multiple items.
  11. I'm not sure why you think these files are loaded into RAM when you're uploading them. I'm not 100% sure, but I don't think that's the case. To answer some of the other questions, I don't think it's ever a good idea to store images in a database. It's a DATAbase... not a FILEbase. Data meaning text and small binary strings, not large chunks of images and random files. I personally wouldn't bother encoding the files. Let the user deal with that. Progress bars are very possible. Consider using something like AJAX to accomplish that. And I would definately consider using the PHP FTP functions instead of the normal upload functions.
  12. Put the ones it has come up with in an array. If it comes up with that same number again, redo your randomizing before moving on to the next match. You can use in_array() to see if the new random number is in your "used" array.
  13. No, that means you don't have a column in that table called "select_type".
  14. You're missing a closing single quotation mark after $pets_allowed.
  15. I know you can use the LIMIT clause in MySQL to grab a specific group of records from a MySQL table, but I'm using MSSQL and I need to do the same thing. I know about the TOP function, but I'm not sure how to go about grabbing the TOP x records starting at record y. I have groups of 12000+ records in a table and I'm graphing all the records. They will have the option to zoom in on the graph and I need to be able to go back and grab from x to y. Any ideas? The only other thing I was thinking of was doing some math on the ID value (auto-increment).
  16. Make sure you've done this: The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access. Configuration of the client will require installation of all the tools.
  17. I checked out the server last night... 31/32 players. I wasn't a huge fan of the map, so I went and played some Euro Forces instead. Good to know it's an active server however!
  18. Oddly enough, it doesn't show the changes there either.
  19. Weird... must be the proxy here at work, but I'm not getting any of these updates.
  20. I'm not sure what you mean. The same practices should be true for small and large projects. The only thing I would suggest for bigger projects (and something I should be doing at work) is to create an external document that describes your application.
  21. No, I mean proper spacing, good variable names, using switches instead of multiple nested ifs.... you can tell when someone doesn't know the language because they use very long methods to accomplish something.
  22. ober

    Web Forms 2.0

    Java was developed by Sun Microsystems. Netscape was founded by the Mozilla people (unless Mozilla is a subset of Sun)?. Those are not the same company.
  23. Comments, spacing, indents, and readable code. Variables should be descriptive and defined if they're meaning is not readily apparent. Classes should be well documented and snippets should explain complex loops and calls.
  24. Ok, but I still don't see this: >>I changed the footer to include the links within and so that the color extends to the bottom of the page.
  25. I refreshed... checked it in IE, etc.
×
×
  • 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.