Jump to content

Adding New Plan to Database


GsXtAsY

Recommended Posts

ok i am going to try my best to explain what I need to do here...first off I need to add a new package to the website...the pkg_id = 86 What I need to do with that number is somehow in phpmyadmin add pkg_id = 86 to all accounts with the carrier_id = 6 now where this gets kinda confusing to me is the carrier_id is under the account table while pkg_id is under the accounts_pkgs table...is there a way to cross reference those two tables and then insert the new data into the accounts_pkgs table? and if so how would i go about writing that in SQL ???

Link to comment
Share on other sites

I knew this would be confusing...its so hard to explain what i need to do...in other words ill try this approach...

 

I want to:

SELECT `carrier_id`, `pkg_id` FROM `account`, `accounts_pkgs` WHERE carrier_id=6

Then on that return I want to insert pkg_id = 86 to all of those results

 

Hopefully that makes more sense

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.