Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sql query


jhsands

Recommended Posts

How do I embed this into a php file, calling the database name and such so I can run it just by accessing a php file?

 

database: allisons_osc1

Table: products_groups

customers_group_id

 

 

$sql = 'DELETE FROM `products_groups` WHERE `products_groups`.`customers_group_id` = 0 LIMIT 25;# MySQL returned an empty result set (i.e. zero rows).'
	. ' ';

BACKUP your current files before editing. Did I mention to BACKUP your current files, first?

 

"I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!"

 

Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password

Link to comment
Share on other sites

you could create a new file in the admin folder with

 

<?php
 require('includes/application_top.php');
 tep_db_query("DELETE FROM products_groups WHERE products_groups and customers_group_id= '0'");
?>

backup your dbase first.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...