To be honest, I regularly don't use phpMyAdmin for this kind of work. If this was a once-off situation, I would just do the update semi-manually (ie: use a good editor to read in the data file and regexp it into an UPDATE). If this was something I was going to have to do on a regular basis, I would whip together a quick SQL script to automate the work (ie: LOAD DATA into temp_table, SELECT 'UPDATE ...' from temp_table, execute output of SELECT). Doing the equivalent of a SQL script in PHP would be pretty straight forward:
// Suck the whole file into an array called $data
$data = file("/your/data/file/here.txt", "r");
$rowcount = count($data) - 1; // We want relative to 0 not 1
for ($rownum=0; $rownum<=$rowcount; $rownum++)
{
$thisorder = chop($data[$rownum]);
// Update order status to 'S'
// database call to UPDATE orders SET order_status='S' WHERE order_id = $thisorder;
}
-- Michael
Darkstreak Computing & Innovations
www.darkstreak.com