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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by hads

  1. hads

    Help creating scalable schema for POS

    Hi ceh4702, Thanks for your detailed post. I realise that there is a lot more to a POS system than my three tables above, the example I gave above was simplified down to things that related to the task at hand. Yes, I see why pre-packaged software is a good idea, but the main reason for this...
  2. hads

    Help creating scalable schema for POS

    Thanks sillysod, that sounds like a good idea. I have also thinking about adding a stock level field to the items table which would be updated on each transaction to save having to do a join at all. It seems less elegant but more efficient. I'll now go away and think about the two options...
  3. hads

    Help creating scalable schema for POS

    Wow, that wasn't the answer I was expecting. Thanks MDXer, it's good to know that I am not completely database illiterate then. Yep cool, my example above was simplified down to the stuff relating to what I was worried about. I've just put 10,000 test products and 100,000 test transactions...
  4. hads

    Help creating scalable schema for POS

    Hi all, I'm creating a Point of Sale application, mostly to teach myself about GUI programming and obviously some more about database design :) I want to achieve the following with my database; - Store a list of products - could be large, like 10,000 - Keep track of stock levels for said...
  5. hads

    alternating table row colors

    Use the modulus operator $array = array('data', 'data', 'data', 'data'); foreach ($array as $k => $v) { if ($k % 2 == 0) { echo 'class1<br>'; } else { echo 'class2<br>'; } } HTH [smurf] 01101000011000010110010001110011
  6. hads

    Stop Words for Search

    Huh, thanks for fixing that link ChrisHirst, I knew I should have previewd that post! [smurf] 01101000011000010110010001110011
  7. hads

    Stop Words for Search

    I remebered seeing a list of words in an article in passing, here's a link http://www.wdvl.com/Authoring/Languages/PHP/SearchEnginhttp://www.wdvl.com/Authoring/Languages/PHP/SearchEngine/conclusion.htmle/conclusion.html also, according to here...
  8. hads

    Tries to Download File Instead of Executing

    You should start a new thread for new problems but this explains your problem... http://www.php.net/manual/en/language.operators.string.php [smurf] 01101000011000010110010001110011
  9. hads

    Mandrake Linux Install CD not booting

    Doh, too slow. Yes. You need to follow the guide on the link I just posted. [smurf] 01101000011000010110010001110011
  10. hads

    Mandrake Linux Install CD not booting

    Doing an MD5 has nothing to do with linux (in this instance). Have you been to the link provided above by smah? It has a downloadable MD5 app that integrates into Windows explorer. >>How do I tell if I burnt the files as ISO (image) files? >What do you see on the CD if you put it in the drive...
  11. hads

    Mandrake Linux Install CD not booting

    MD5 sums check that two files match, what you need to do is do an MD5sum on the files you downloaded (with the tool found above or another) and compare the result to the matching MD5sum on the site where you downloaded the files. One thing that is common, did you make sure you burnt the files...
  12. hads

    Do we have any cloning software for Linux platform?

    There's a typo in my earlier post. tar cpfl - /dir | tar xvpf - -C /mnt/point should be: tar cplf - /dir | tar xvpf - -C /mnt/point Anyway, If the drives have the same geometry you could use dd to copy them: dd if=/dev/hdb of=/dev/hda bs=???k Where ???k is the drives cache. I haven't done...
  13. hads

    Do we have any cloning software for Linux platform?

    I don't know of any sofware but... If you create the partitions on the new disk you can copy linux to fairly easily using: tar cpfl - /dir | tar xvpf - -C /mnt/point Where /dir is the directory to copy and /mount/point is the mount point of the new partition you wish to copy to. You will...
  14. hads

    share a partition with windows?

    Cool! I stand corrected about the reading of ext from windows. Nice one flugh. [smurf] 01101000011000010110010001110011
  15. hads

    share a partition with windows?

    Just add; /dev/hda4 /mnt/somewheres vfat defaults 0 0 Check out here for a bit of info on fstab http://www.frankenlinux.com/intro/fstab.html You may need to adjust the options for uid/gid to let your user write to the partition, I can't remember. but give that a go. To mount it...

Part and Inventory Search

Back
Top