Jump to content

How would I run the following MySQL query in a PHP script ?


devan

Recommended Posts

TRUNCATE TABLE CubeCart_cats_idx;

INSERT INTO CubeCart_cats_idx (productid, cat_id) SELECT productid, cat_id FROM CubeCart_inventory;

 

I an running the following in MyPHPAdmin, but need this to be automated in a PHP script, how would I do it ?

all help is appreciated, still new to PHP & MySQL  :confused:

 

many thanks

 

D

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.