Jump to content

Problem inserting data into MYSQL via PHP


regrahc

Recommended Posts

 

Hello, I found the attached php script online and was wondering if someone would mind taking a look at it. I have attempted to modify the script to pull down Craigslist posts. I used the exact SQL script for creating the rssingest table, and have modified the variables (username, password, etc) to fit my environment (left them out of the file for obvious reasons). Using PHP/MySQL on Hostgator.

When I run the script, I get the message that it’s working, but no data is being inserted into my database:

Access key correct, proceeding...

Starting to work with feed URL 'http://sandiego.craigslist.org/reo/index.rss'"

Thinking I had some sort of column mismatch, I used Excel to pull Craigslist data into a spreadsheet via the following: Excel Blog - Pulling RSS data into Excel (or: Using Excel to Search Craigslist) - Part 1 (file attached).

It looks like it should work, IMHO. Would someone be so kind as to take a look and see if you can find what I’m missing?

Thank you in advance for any and all help!

index_clean.zip

Link to comment
Share on other sites

So - you say you are reading the data successfully, but you can't post it in your database.  So - rather than expect us to look at a whole lot of code, why not just post the part that is trying to post your database?  Show the query you are using,  Better yet - show us the error message you get from running the insert query.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.