ietax Posted November 13, 2013 Share Posted November 13, 2013 (edited) Hi, i nedd to insert tracking number on ps_orders (delivery_number).. I generate tracking number by php Using mysql, how can I REPLACE or INSERT to...??? I have difficulty to set mysql command... range_trk is my variable (track numb) "REPLACE INTO ps_orders (delivery_number) VALUES ('$range_trk')"; Thanks Edited November 13, 2013 by ietax (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 13, 2013 Share Posted November 13, 2013 hello you want to insert the same tracking number for all orders or only for certain of them? Link to comment Share on other sites More sharing options...
ietax Posted November 13, 2013 Author Share Posted November 13, 2013 Ho, i want each orders different training number, i can generate track numb by php... But i cannot insert it in ps_table... Link to comment Share on other sites More sharing options...
vekia Posted November 13, 2013 Share Posted November 13, 2013 so you're saying that this identification number must be different for each order? and you want to generate it randomly? and when? right after order? or ... ? Link to comment Share on other sites More sharing options...
ietax Posted November 13, 2013 Author Share Posted November 13, 2013 I generate teacking number by php, export all orders details in txt file and (by php) i can generate teacking number. At the end i'dlike to insert track numb on ps-table Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now