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 Wanet Telecoms Ltd 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: *

  1. SPrelewicz

    Convert Time in Minutes to a Time string

    Nevermind, found an adequate solution. Using timeInMinutes%60 gives the minutes needed, duh.
  2. SPrelewicz

    Convert Time in Minutes to a Time string

    Does anyone know of any existing function available, or offer advice on how to implement the following: Given the time in minutes, how can I convert it onto a time string? Example: 480 converts to 8:00 AM. 510 converts to 8:30. 525 converts to 8:45. 0 converts to 12:00 AM. This seems simple...
  3. SPrelewicz

    Prechecked checkboxes not retaining

    This is one of my many dumb moves, but I solved it. In the if checked conditional, if it was checked I wasnt putting in the name=checkboxes[] in the generated HTML, only in the else. Beleive it or not, your asking for the HTML made me see the error, so thanks :)
  4. SPrelewicz

    Prechecked checkboxes not retaining

    I am prepopulating checkboxes from MySQL. This works just fine. When I go to the form, the values that are stored in the database are in fact prechecked. (Using HTML CHECKED in the checkbox tag). If I select a few more checkboxes, however, and submit, ONLY the new ones that I manually checked...
  5. SPrelewicz

    ORM and PHP class design

    Ahh, yes Miros, that makes sense. I'll give that a go and see if my OO design falls into place. Thank you. Scott
  6. SPrelewicz

    ORM and PHP class design

    As a follow up, since I'm asking for advice... Should I be implementing in some way so that in the example above I could just do something like $apartment->get_property_name() without calling it from the property object. If so, how? Just have a function in apartment called get_property_name()...
  7. SPrelewicz

    ORM and PHP class design

    I am doing an application where I have essentialy a class per table of my mySQL database. I am stuck at a one-to-many and how to implement the classes. Specifics: I have a property table (and class), and an apartment table(and class). The apartment table has a foreign key property_id to the...
  8. SPrelewicz

    Simple [not for me] Single Quote Substitution

    I pull some HTML from a mySQL DB to put into a text field. The problem is if there is a single quote it thinks its the end of the value attribute for the text field. So, in my script I want to somehow replace the ' with the ASCII character, but that is goofy too with its perl-ism. Heres what I...
  9. SPrelewicz

    Complex regular Expression - format inconsistent

    Remove the first Comma, so that 'Unit Number' is now correctly not delimited and is part of address1. Id then (Perhaps incorrectly) That up to the next comma could be stored in Address 2. After that, Id have to start using the advice above and checking a list of towns/counties, against this, as...
  10. SPrelewicz

    Complex regular Expression - format inconsistent

    Thanks fish. Im going to try out your suggestion and see what I can do with it. Thanks much, Scott
  11. SPrelewicz

    Complex regular Expression - format inconsistent

    Sorry, I have a quoting error in that chunk, heres the proper data: "Chemical Works, Weir Rd, Ayr, Ayrshire","ka8 8bd" "Moycroft Industrial Estate, Elgin, Morayshire","iv30 1xz" "Checkbar, Nigg, Aberdeen, Aberdeenshire","ab12 4lp" "Moycroft Ind Est, Elgin, Morayshire","iv30 1xz" "34, Mount...
  12. SPrelewicz

    Complex regular Expression - format inconsistent

    Sure, here are about 100 lines. Note - Ive managed to get a hold of the post code in a separate field. So, theres one step. "10, Maxwell Gardens, Hurlford, Kilmarnock, Ayrshire," ka1 5by" "Unit 2, Umberley Rd, Kilmarnock, Ayrshire," ka1 5lb" "Limekilns Rd, Ayr,," ka8 8dg" "36, Lloyd Walk...
  13. SPrelewicz

    Complex regular Expression - format inconsistent

    Thats actually a prettu good idea. Avoid the regex entirely and just map something persistent onto the others. Ill think Ill try this unless someone else can think of something. Thanks. Scott
  14. SPrelewicz

    Complex regular Expression - format inconsistent

    I have a general "Address" field in a text data set. I need to extract from the general address field specific elements, such as "Address 1", Addy2", City", etc.. The problem is the formatting of that field is tough for this. Occassionay, theres a comma after the building number, occassionally...
  15. SPrelewicz

    Object oriented Design

    I was offline for a few days, but I thought Id revive this a little. I very much like the idea of "Collaborating" on a project here to model something. I think, like said above, its be a good idea to try something slightly less concrete than say a Car, to help us along in real world projects.
  16. SPrelewicz

    OO Design, Process advice

    Sorry, Im a bit tight on time, but I dont want anyone to think Im ignoring the thread. It has been VERY helpful and encouraging. More later.
  17. SPrelewicz

    Object oriented Design

    Yes, there will be a data layer, but I over simplified the specification. I will be using a DB with a data object. But theres other things to do as well. I have a Templating "object', session objects, etc. But I dont see why you cant use OO for a web app with in conjunction with relational database.
  18. SPrelewicz

    Object oriented Design

    -->So when part of your app can be used elsewhere, then OO may be the way to go, though you can still reuse in perl with methods, With OTHER method, ie Modules! Reminds self to hit "Preview" before "Sumit
  19. SPrelewicz

    Object oriented Design

    Let me tell you why i decided to take the leap with this particular project: The App will be basically to take sports stats via an admin panel on a game by game/player by player basis. All the player info, game info, season info, etc is stored and viewed and such later. It will be available...
  20. SPrelewicz

    Object oriented Design

    1DMF - Thats exactly the conundrum I have, which was I guess the original intention of this thread. When you use video games, car, dog examples, it comes clear eventually, but when you have to model concepts and such, thats where i go wrong as well. Then you add layers and such. But this thread...

Part and Inventory Search

Back
Top