Jump to content

Problems inserting records into mySQL


padams

Recommended Posts

I've had a problem with mySQL recently. When inserting data (using either SQL or the phpMyAdmin interface) into a table, the data in the second field changes to the word 'Array'. Doesn't happen all the time, but certainly at least 90% of the time.

 

If it matters, there are four fields, called 'personID' (int), 'firstName' (varchar), 'lastName' (varchar), and 'job' (varchar).

 

We're running mySQL version 5.0.18, and phpMyAdmin version 2.8.0.3.

 

Any ideas?

Link to comment
Share on other sites

NO, not an array. Just text. For example, a couple of the rows are:

1, Phil, Adams, Teacher

2, Bill, Clarke, Teacher

 

When entered, both first names changed to Array.

 

Additionally, I added an extra column called 'photo'. I entered data in there, file names such as philadams.jpg and billclarke.jpg. Then, when I changed the first names back to Phil and Bill, both photos had changed to Array. When I try to change them phpMyAdmin says 'No Change' and won't change them.

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.