Barcode reader into database

Posted on 2005-05-16
Last Modified: 2013-12-12
Looking to read a barcode via a USB or other barcode device and have the data fed into a MySQL database. Firstly, can this be done and, if so, any ideas how? Thanks!
Question by:robertybob
    LVL 32

    Expert Comment

    I dont have any experience, but see if this open source is helpful:
    LVL 9

    Accepted Solution

    This can be done but not with webserver (PHP). You need windows app that will comunicate with USB or any other port on which barcode reader will be attached. That win app wil then store barcode data into mysql.

    now when data is inserted into database you can use webserver to show/manipulate barcode data on web.

    hope that helps

    LVL 5

    Assisted Solution

    This can be done but not with webserver (PHP).

    That's not actually true.  It's just very difficult.  However, if you're thinking of getting a barcode from some *other* machine than the server that is *running* PHP, then gruntar is correct -- that's not possible.  Otherwise, if you're using Unix/Linux, it's possible.  If you're using Windows, your options become slightly more limited.  Most of what you're trying to accomplish, however, will give you a *MUCH* bigger headache by trying to do it in PHP than if you could create a Windows service or some other non-scripting-language application to do what you're mentioning.

    Just thought I'd clarify a bit to make sure you know what your options are.

    Hope that helps,
    LVL 10

    Assisted Solution

    You simply need a bar-code reader device & that device generally comes with a software to transfer the data to your PC (or Server). PHP can surely generate the bar code but reading the bar-code will mean interacting with the bar-code reader i.e. device level interaction. It isn't impossible...but if I was in your place I would have simply used the software that comes with the device itself. :)


    PS: I will try some Googling...let us see if something comes up.
    LVL 10

    Expert Comment

    No comment has been added to this question in more than 21 days,so it is now classified as abandoned..
    I will leave the following recommendation for this question in the Cleanup topic area:
    [Points Split {gruntar},{iamanindian} and {dougday}]

    Any objections should be posted here in the next 4 days. After that time, the question will be closed.

    Kshitij Ahuja
    EE Cleanup Volunteer

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now