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
https://forums.phpfreaks.com/topic/112093-adding-new-plan-to-database/
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

Archived

This topic is now archived and is closed to further replies.

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