table.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. require_once 'connection.php';
  3. $result = mysqli_query($con, " SELECT * FROM `details` WHERE drg = $drg ORDER BY drg ASC ");
  4. if (!$result) {
  5. printf("Error: %s\n", mysqli_error($con));
  6. exit();
  7. alert("error");
  8. }
  9. while ($row = mysqli_fetch_array($result)) {
  10. $firstname = $row['firstname'];
  11. $lastname = $row['lastname'];
  12. $joint_name = $row['joint_name'];
  13. $client_email = $row['client_email'];
  14. $client_mobile = $row['client_mobile'];
  15. $property_id = $row['property_id'];
  16. $title_id = $row['title_id'];
  17. $registered_owner = $row['registered_owner'];
  18. $budget_low = $row['budget_low'];
  19. $budget_high = $row['budget_high'];
  20. $finance_status = $row['finance_status'];
  21. $copy_title = $row['copy_title'];
  22. $original_plans = $row['original_plans'];
  23. $concepts_styles = $row['concepts_styles'];
  24. $loa_signed = $row['loa_signed'];
  25. $da_application = $row['da_application'];
  26. $ba_application = $row['ba_application'];
  27. $concepts_3d = $row['concepts_3d'];
  28. $draft_floorPlan = $row['draft_floorPlan'];
  29. $fire_report = $row['fire_report'];
  30. $energy_report = $row['energy_report'];
  31. $tender_set = $row['tender_set'];
  32. $quantity_survey = $row['quantity_survey'];
  33. $vr_concepts = $row['vr_concepts'];
  34. $render_set = $row['render_set'];
  35. $model_3d = $row['model_3d'];
  36. $details = $row['details'];
  37. $signature = $row['signature'];
  38. $design_style = $row['design_style'];
  39. $build_type = $row['build_type'];
  40. $council = $row['council'];
  41. $elevation = $row['elevation'];
  42. $total_area = $row['total_area'];
  43. $scope = $row['scope'];
  44. $planning_scheme = $row['planning_scheme'];
  45. $planning_zones = $row['planning_zones'];
  46. $planning_codes = $row['planning_codes'];
  47. $plan_data = $row['plan_data'];
  48. $dealId = $row['dealId'];
  49. $crm_id = $row['crm_id'];
  50. $enquiry_date = $row['enquiry_date'];
  51. }
  52. $result = mysqli_query($con, " SELECT * FROM `addresses` WHERE drg = $drg ORDER BY drg ASC ");
  53. if (!$result) {
  54. printf("Error: %s\n", mysqli_error($con));
  55. exit();
  56. alert("error");
  57. }
  58. while ($row = mysqli_fetch_array($result)) {
  59. $site_address = $row['site_address'];
  60. $site_address_street = $row['site_address_street'];
  61. $site_address_town = $row['site_address_town'];
  62. $site_address_state = $row['site_address_state'];
  63. $site_address_postcode = $row['site_address_postcode'];
  64. $site_lat = $row['site_lat'];
  65. $site_lng = $row['site_lng'];
  66. $postal_address = $row['postal_address'];
  67. $postal_address_street = $row['postal_address_street'];
  68. $postal_address_town = $row['postal_address_town'];
  69. $postal_address_state = $row['postal_address_state'];
  70. $postal_address_postcode = $row['postal_address_postcode'];
  71. }