Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. newlab(Department_Name,Total_PC,MAC,Lab_Code,PC_Name,Purchase_Order_No,Brand,Model_Name,Price,Processor,Ram,HDD,HDD_Type,OS)
  2.  
  3. maintenance(Department_Name,MAC,Lab_Code,PC_Name,Purchase_Order_No,Brand,Model_Name,Price,Processor,Ram,HDD,HDD_Type)
  4.  
  5. $sql = "INSERT INTO ` maintenance`(MAC,Lab_Code,PC_Name,Purchase_Order_No,Brand,Model,Price,Processor,Ram,HDD,HDD_Type)SELECT MAC,Lab_Code,PC_Name,Purchase_Order_No,Brand,Model_Name,Price,Processor,Ram,HDD,HDD_Type FROM `newlab` WHERE PC_Name='".$PC_Name."'";
  6. $ress = mysqli_query($con,$sql);
  7.  
  8. if(!$ress)
  9. {
  10. echo "Not done";
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement