Jump to content

Having problems with inserting data in right column with jquery and PHP


therocker
Go to solution Solved by mac_gyver,

Recommended Posts

I'm not really sure were this belongs because I don't really know which part of my script is causing the problem.

So I have screen printed my issue. I think screen printing and showing you guys what my problems are is a great idea rather then me trying to explain myself. Pictures show more than words. But anyways.

 

My main problem is that I want to insert the data "privacy=everyone" into it's own separate column, but also take the "privacy" out and insert into the column with the data "everyone". This is what I got so far.

 

This is my issue I have on a live page. I cropped everything out except the issue.

post-113794-0-16444900-1387260619_thumb.png

 

Here is my PHP code.

post-113794-0-84872700-1387261199_thumb.png

 

Here is my Jquery code.

post-113794-0-78299500-1387260630_thumb.png

 

And here is my MySQL data.

post-113794-0-79016200-1387260636_thumb.png

 

My ideal MySQL data would look something like this.

post-113794-0-45944000-1387260641_thumb.png

 

If I forgot something, I'll edit this post.

 

EDIT: I should also mention that some of the PHP codes are whiten out in case of coping. The status and category are suppose to be one, but I had whiten out the other codes so the category and status looks like they're not aligned, but they are in my real code.

Edited by therocker
Link to comment
Share on other sites

  • Solution

your data: parameter needs to be two separate keys/values, not just one string for the first parameter. i would copy/paste your code showing how, but since it's an image, cannot do that. please just post text in the future.

 

it should look like this - data: { name: "John", location: "Boston" }

Link to comment
Share on other sites

your data: parameter needs to be two separate keys/values, not just one string for the first parameter. i would copy/paste your code showing how, but since it's an image, cannot do that. please just post text in the future.

 

it should look like this - data: { name: "John", location: "Boston" }

Thanks. It works now. Sorry for using images. I'll use images for the results and text for the codes.

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.