Jump to content

Help!


takeiteasy

Recommended Posts

I'm urgent for help here! can anyone help me with the codes?
Right now, i 'm doing the archive page of my project
[code]
if (isset($HTTP_GET_VARS['empRef']))
{
$result = mysql_query("INSERT INTO archive (empRef, empName, workerName, flightNo, airCompany, ticketType, destination, time, DOD, DOR, receiptNo, quotes, amtpaid, paymentMode, chequeNo, AD,agentQuote, payAgent, remarks)
                                      SELECT empRef, empName, workerName, flightNo, airCompany, ticketType, destination, time, DOD, DOR, receiptNo, quotes, amtpaid, paymentMode, chequeNo, AD,agentQuote, payAgent, remarks
                                      FROM airticketbooking
                                      WHERE empRef='$HTTP_GET_VARS[empRef]'",$db_connection) or die(mysql_error());
[/code]

but i have 1 more condition before i want to Insert data into the database, that is to check if there's a same empRef with $HTTP_GET_VARS['empRef'] in the archive table so how do i write the codes?

And also after Inserting the data in the archive table, i wan to delete the data in the airticketbooking table, how do i write out the code?
TIA!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.