www.webdeveloper.com
Results 1 to 2 of 2

Thread: function that browses the text, grabs a certain 'div', and then updates a database

  1. #1
    Join Date
    Sep 2007
    Posts
    38

    Cool function that browses the text, grabs a certain 'div', and then updates a database

    Hello,

    I need to develop either a script or if there is some type of software out there that already does this, well, I'd really appreciate any and all help.

    Basically I need to run a web search, something like this for google works fine: http://code.google.com/apis/ajax/pla...rch#raw_search

    So now I need a script that can take the output of this search feature and store it into a database... Which is why I picked php, I'm a bit familiar w/ php; I'd say I'm beginner-intermediate level. Is there any way to create some type of function that browses the text, grabs a certain 'div' or something, and then updates a database? Or is there already something available? Updating a database is no problem, I do that all the time for small CMS systems, but it's the grabbing of the data that I'm having a challenge with.

    I don't really have an idea on where to start for this, so I figured I'd post a thread and hopefully someone can help save me some time. Thanks in advance and I really appreciate any comments and/or suggestions.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,221
    For grabbing [X]HTML content, see the PHP DOM extension.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles