Searching for catalouge items in the database.

ItsGeorge

New Member
Jan 4, 2015
8
0
Hello,
I'm trying to search for furniture with the page id of '600' and i sort out the page id too ascending/decending but either of them show the page ID of 600, what can i do too find all the furniture with the page id 600?

Thanks,
ItsGeorge
 

JayC

Always Learning
Aug 8, 2013
5,504
1,401
If you're trying to move all the furniture with page ID 600 you can just run a query:

UPDATE catalog_pages WHERE page_id = '600' SET page_id = 'whatever'

otherwise you can do exactly what you did, assort them and find it by hand
 

ItsGeorge

New Member
Jan 4, 2015
8
0
If you're trying to move all the furniture with page ID 600 you can just run a query:

UPDATE catalog_pages WHERE page_id = '600' SET page_id = 'whatever'

otherwise you can do exactly what you did, assort them and find it by hand
Trying to change the price of everything under that page, so what query would i search for Updating the credits?
 

JayC

Always Learning
Aug 8, 2013
5,504
1,401
If you want all the furniture to be the same price do this query:

UPDATE catalog_items SET cost_credits='COST' WHERE page_id='642'

Change COST to the amount of coins
 

ItsGeorge

New Member
Jan 4, 2015
8
0
If you want all the furniture to be the same price do this query:

UPDATE catalog_items SET cost_credits='COST' WHERE page_id='642'

Change COST to the amount of coins
Cheers man that worked perfectly, By any chance do you have like a list of querys that could help me for the near future or?
 

JayC

Always Learning
Aug 8, 2013
5,504
1,401
Learn to write them. They are really simple use this template:

UPDATE *table* SET *column*=*value* WHERE *column*=*value*;

Like setting homeroom:

UPDATE users SET 'home_room'='#';
 

Users who are viewing this thread

Top