473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

how can i fix this?

ERROR:
Undefined property: form_all_single_record_table_apl::$add_sitio
Undefined property: form_all_single_record_table_apl::$unmarried_lname
Undefined offset: 6
Aug 27 '10 #1
5 1216
TheServant
1,168 Expert 1GB
We need some code to look at. Preferably code that is around where this problem occurs.

Basically that error comes up when you have not given a variable you're trying to use a value.
Aug 27 '10 #2
Expand|Select|Wrap|Line Numbers
  1. sc_exec_sql("DELETE from pdf_temp_table");
  2.  
  3.  
  4. $rank = {rank};
  5. $afpsn = {afpsn};
  6. $lname = {lname};
  7. $fname = {fname};
  8. $mname = {mname};
  9. $add_num = {add_num};
  10. $add_street = {add_street};
  11. $add_sito = {add_sito};
  12. $add_brgy = {add_brgy};
  13. $add_province = {add_brgy};
  14. $add_region = {add_region};
  15. $add_postal = {add_postal};
  16. $position = {position};
  17. $income = {income};
  18. $tin = {tin};
  19. $com_cert_no = {com_cert_no};
  20. $ofc_add_num = {ofc_add_num};
  21. $ofc_add_street = {ofc_add_street};
  22. $ofc_add_sitio = {ofc_add_sitio};
  23. $ofc_add_brgy = {ofc_add_brgy};
  24. $ofc_add_cty = {ofc_add_cty};
  25. $ofc_add_province = {ofc_add_province};
  26. $ofc_add_region = {ofc_add_region};
  27. $ofc_add_postal = {ofc_add_postal};
  28. $ofc_name = {ofc_name};
  29. $spouse_lname = {spouse_lname};
  30. $spouse_fname = {spouse_fname};
  31. $spouse_mname = {spouse_mname};
  32. $spouse_position = {spouse_position};
  33. $spouse_ofc_name = {spouse_ofc_name};
  34. $spouse_tin = {spouse_tin};
  35. $spouse_com_cert_no = {com_cert_no};
  36. $total_networth = {total_networth};
  37. $oath_lname = {oath_lname};
  38. $oath_fname = {oath_fname};
  39. $oath_mname = {oath_mname};
  40. $oath_designation = {oath_designation};
  41. $issued_at = {issued_at};
  42. $oath_dte = {oath_dte};
  43. $printing_dte = {printing_dte};
  44. $business_interest = {business_interest};
  45. $irgs_working_in_government = {irgs_working_in_government};
  46. $assets_real_total = {assets_real_total};
  47. $assets_pop_total = {assets_pop_total};
  48. $liabilities_total = {liabilities_total};
  49. $assets_pop_kind = {assets_pop_kind};
  50. $assets_pop_yr_acquired = {assets_pop_yr_acquired};
  51. $assets_pop_cost = {assets_pop_cost};
  52. $assets_real_kind = {assets_real_kind};
  53. $assets_real_location = {assets_real_location};
  54. $assets_real_yr_acquired = {assets_real_yr_acquired};
  55. $assets_real_mode_acquisition = {assets_real_mode_acquired};
  56. $assets_real_nature_property = {assets_real_nature_property};
  57. $assets_real_assessed_value = {assets_real_assessed_value};
  58. $assets_real_fair_value = {assets_real_fair_value};
  59. $assets_real_cost_bldg = {assets_cost_bldg};
  60. $assets_real_cost_improvements = {assets_real_cost_improvements};
  61. $bifc_lname = {bifc_lname};
  62. $bifc_fname = {bifc_lname};
  63. $bifc_mname = {bifc_mname};
  64. $bifc_company_name = {bifc_company_name};
  65. $bifc_company_add = {bifc_company_add};
  66. $bifc_nature_business_interest = {bifc_nature_business_interest};
  67. $bifc_financial_connection = {bifc_financial_connection};
  68. $bifc_dte_acquisition = {bifc_dte_acquisition};
  69. $bifc_yr_acquisition = {bifc_yr_acquisition};
  70. $liabilities_nature = {liabilities_nature};
  71. $liabilities_creditors_name = {liabilities_creditors_name};
  72. $liabilities_amount = {liabilities_amount};
  73. $irgs_lname = {irgs_lname};
  74. $irgs_fname = {irgs_fname};
  75. $irgs_mname = {irgs_mname};
  76. $irgs_relationship = {irgs_relationship};
  77. $irgs_office_name = {irgs_office_name};
  78. $irgs_office_add = {irgs_office_add};
  79. $unmarried_lname = {unmarried_lname};
  80. $unmarried_fname = {unamrried_fname};
  81. $unmarried_mname = {unmarried_mname};
  82. $unmarried_birth_dte = {unmarried_birh_dte};
  83.  
  84.  
  85. sc_exec_sql("INSERT INTO pdf_temp_table(rank, 
  86.                     afpsn, 
  87.                     lname, 
  88.                     fname, 
  89.                     mname,
  90.                     add_num, 
  91.                     add_street, 
  92.                     add_sito, 
  93.                     add_brgy, 
  94.                     add_city, 
  95.                     add_province, 
  96.                     add_region, 
  97.                     add_postal, 
  98.                     position, 
  99.                     income, 
  100.                     tin, 
  101.                     com_cert_no, 
  102.                     ofc_add_num, 
  103.                     ofc_add_street, 
  104.                     ofc_add_sitio,
  105.                     ofc_add_brgy, 
  106.                     ofc_add_cty, 
  107.                     ofc_add_province, 
  108.                     ofc_add_region,
  109.                     ofc_add_postal, 
  110.                     ofc_name, 
  111.                     spouse_lname, 
  112.                     spouse_fname, 
  113.                     spouse_mname,
  114.                     spouse_position, 
  115.                     spouse_ofc_name, 
  116.                     spouse_tin, 
  117.                     spouse_com_cert_no,
  118.                     total_networth, 
  119.                     oath_lname, 
  120.                     oath_fname, 
  121.                     oath_mname, 
  122.                     oath_designation,
  123.                     issued_at, 
  124.                     oath_dte, 
  125.                     printing_dte, 
  126.                     business_interest, 
  127.                     irgs_working_in_government,
  128.                     assets_real_total, 
  129.                     assets_pop_total, 
  130.                     liabilities_total, 
  131.                     assets_pop_kind,
  132.                     assets_pop_yr_acquired,
  133.                     assets_pop_cost,
  134.                     assets_real_kind, 
  135.                     assets_real_location,
  136.                     assets_real_yr_acquired, 
  137.                     assets_real_mode_acquisition,
  138.                     assets_real_nature_property, 
  139.                     assets_real_assessed_value, 
  140.                     assets_real_fair_value,
  141.                     assets_real_cost_bldg, 
  142.                     assets_real_cost_improvements,
  143.                     bifc_lname, 
  144.                     bifc_fname, 
  145.                     bifc_mname, 
  146.                     bifc_company_name, 
  147.                     bifc_company_add,
  148.                     bifc_nature_business_interest, 
  149.                     bifc_financial_connection,
  150.                     bifc_dte_acquisition, 
  151.                     bifc_yr_acquisition, 
  152.                     liabilities_nature,
  153.                     liabilities_creditors_name, 
  154.                     liabilities_amount, 
  155.                     irgs_lname,
  156.                     irgs_fname, 
  157.                     irgs_mname, 
  158.                     irgs_position, 
  159.                     irgs_relationship,
  160.                     irgs_office_name, 
  161.                     irgs_office_add, 
  162.                     unmarried_lname, 
  163.                     unmarried_fname,
  164.                     unmarried_mname, 
  165.                     unmarried_birh_dte
  166.                     )
  167.         values('$rank', 
  168.             '$afpsn', 
  169.             '$lname', 
  170.             '$fname', 
  171.             '$mname',
  172.             '$add_num', 
  173.             '$add_street', 
  174.             '$add_sito', 
  175.             '$add_brgy', 
  176.             '$add_city', 
  177.             '$add_province', 
  178.             '$add_region', 
  179.             '$add_postal', 
  180.             '$position', 
  181.             '$income', 
  182.             '$tin', 
  183.             '$com_cert_no', 
  184.             '$ofc_add_num', 
  185.             '$ofc_add_street',
  186.             '$ofc_add_sitio',
  187.             '$ofc_add_brgy', 
  188.             '$ofc_add_cty', 
  189.             '$ofc_add_province', 
  190.             '$ofc_add_region',
  191.             '$ofc_add_postal', 
  192.             '$ofc_name', 
  193.             '$spouse_lname', 
  194.             '$spouse_fname', 
  195.             '$spouse_mname',
  196.             '$spouse_position', 
  197.             '$spouse_ofc_name', 
  198.             '$spouse_tin', 
  199.             '$spouse_com_cert_no',
  200.             '$total_networth',
  201.             '$oath_lname', 
  202.             '$oath_fname', 
  203.             '$oath_mname', 
  204.             '$oath_designation',
  205.             '$issued_at', 
  206.             '$oath_dte', 
  207.             '$printing_dte', 
  208.             '$business_interest', 
  209.             '$irgs_working_in_government',
  210.             '$assets_real_total', 
  211.             '$assets_pop_total', 
  212.             '$liabilities_total', 
  213.             '$assets_pop_kind',
  214.             '$assets_pop_yr_acquired', 
  215.             '$assets_pop_cost', 
  216.             '$assets_real_kind', 
  217.             '$assets_real_location', 
  218.             '$assets_real_yr_acquired',
  219.             '$assets_real_mode_acquisition',
  220.             '$assets_real_nature_property', 
  221.             '$assets_real_assessed_value', 
  222.             '$assets_real_fair_value',
  223.             '$assets_real_cost_bldg', 
  224.             '$assets_real_cost_improvements',
  225.             '$bifc_lname', 
  226.             '$bifc_fname', 
  227.             '$bifc_mname', 
  228.             '$bifc_company_name', 
  229.             '$bifc_company_add',
  230.             '$bifc_nature_business_interest', 
  231.             '$bifc_financial_connection',
  232.             '$bifc_dte_acquisition', 
  233.             '$bifc_yr_acquisition', 
  234.             '$liabilities_nature',
  235.             '$liabilities_creditors_name', 
  236.             '$liabilities_amount', 
  237.             '$irgs_lname',
  238.             '$irgs_fname', 
  239.             '$irgs_mname', 
  240.             '$irgs_position', 
  241.             '$irgs_relationship',
  242.             '$irgs_office_name', 
  243.             '$irgs_office_add', 
  244.             '$unmarried_lname', 
  245.             '$unmarried_fname',
  246.             '$unmarried_mname', 
  247.             '$unmarried_birh_dte'
  248.             )");
  249.  
  250. echo $unmarried_lname;
  251.  
  252. //sc_redir(print_saln.php);



->here is my code
Aug 27 '10 #3
code green
1,726 Expert 1GB
$add_sitio
$unmarried_lname
are not defined in your code
Aug 27 '10 #4
how can i define them..?

$ofc_add_sitio = {ofc_add_sitio};
$unmarried_lname = {unmarried_lname};

-are these codes didnt define them??
Aug 27 '10 #5
TheServant
1,168 Expert 1GB
You're using a templating engine or something: {rank} is not normal PHP. I imagine that where ever {ofc_add_sitio} and {unmarried_lname} are defined is where your problem is. Can you explain a bit more about that?

Also, put any code in [code] tags so they read easier on the forum.
Aug 27 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: James | last post by:
I have a from with 2 fields: Company & Name Depening which is completed, one of the following queries will be run: if($Company){ $query = "Select C* From tblsample Where ID = $Company...
5
by: Scott D | last post by:
I am trying to check and see if a field is posted or not, if not posted then assign $location which is a session variable to $location_other. If it is posted then just assign it to...
2
by: Nick | last post by:
Can someone please tell me how to access elements from a multiple selection list? From what ive read on other posts, this is correct. I keep getting an "Undefined variable" error though... Form...
2
by: Alexander Ross | last post by:
I have a variable ($x) that can have 50 different (string) values. I want to check for 7 of those values and do something based on it ... as I see it I have 2 options: 1) if (($x=="one") ||...
0
by: Dan Foley | last post by:
This script runs fine, but I'd like to know why it's so slow.. Thanks for any help out there on how i can make it faster (it might take up to 5 min to write these 3 export files whith 15 records...
5
by: Lee Redeem | last post by:
Hi there I've created abd uploaded this basic PHP script: <html> <head> <title>PHP Test</title> </head> <body> <H1 align="center">
5
by: christopher vogt | last post by:
Hi, i'm wondering if there is something like $this-> to call a method inside another method of the same class without using the classname in front. I actually use class TEST { function...
6
by: Phil Powell | last post by:
Ok guys, here we go again! SELECT s.nnet_produkt_storrelse_navn FROM nnet_produkt_storrelse s, nnet_produkt_varegruppe v, nnet_storrelse_varegruppe_assoc sv, nnet_produkt p WHERE...
1
by: Michel | last post by:
a site like this http://www.dvdzone2.com/dvd Can you make it in PHP and MySQL within 6 weeks? If so, send me your price 2 a r a (at) p a n d o r a . b e
11
by: Maciej Nadolski | last post by:
Hi! I can`t understand what php wants from me:( So: Cannot send session cache limiter - headers already sent (output started at /home/krecik/public_html/silnik.php:208) in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.