Jump to content

Marooon

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Marooon's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. first i am sorry for the upper case issue , i used to code with Upper case due to the case sensitive issue. i found a work around as below : FUNCTION GET_SPECIFEC_ATT($ATT,$LANG) { $ATT=$this->$ATT; IF (is_array($ATT)) { return $ATT["L".$LANG]; } else { return $ATT; } } also i tried xyph solution it is working thank you all alot ,
  2. I Think i figured out what is the problem in this case echo $this->$ATT['L' . $LANG]; it is dealing with $ATT as an array and trying to find the offset LA, which doesnt exist i tried to do that FUNCTION GET_SPECIFEC_ATT($ATT,$LANG) { $ATT=$ATT.'["LA"]'; ECHO $ATT; echo $this->$ATT; } but i am getting this error now : Notice: Undefined property: ACCOUNT::$BRANCH_NAME["LA"] in D:\wamp\www\EBANK\account.class on line 189 Please help
  3. also thorpe , can you please guide me what am i doing wrong ? thanks a lot
  4. Dear thorpe i am getting the same error Notice: Undefined property: ACCOUNT::$B in D:\wamp\www\EBANK\account.class on line 185 Dear Zephni that it is the way i call the function : function is : FUNCTION GET_SPECIFEC_ATT($ATT,$LANG) { echo $this->$ATT['L' . $LANG]; } how i call it : $ACCOUNTS[$i]=NEW ACCOUNT($CIF_ACCOUNTS[$i]); ECHO $ACCOUNTS[$i]->GET_SPECIFEC_ATT("BRANCH_NAME","A"); thank you for your help
  5. Dear Zephni, the ATT is not a property of the class, it a variable used inside this method(function). the $ATT includes the property i want to use . in my case: FUNCTION GET_SPECIFEC_ATT($ATT,$LANG) { $ATT=$ATT."['L$LANG']"; ECHO $this->$ATT; } when i call this function like FUNCTION GET_SPECIFEC_ATT('BRANCH_NAME','A') THE $ATT WILL be equal to BRANCH_NAME['LA'] the echo statment should be : echo $this->BRANCH_NAME['LA'] but iam getting that error thank you
  6. thank you again That is the problem , it is defined but not working . i will appreciate your help a lot. i will try to reformat the code to be better thank you
  7. First thanks for your answer ,i am sorry i missed a line while copying it from my code , the last line in the properties is private $BRANCH_NAME= ARRAY("LA"=>'',"LE"=>''); calling it as below is working fine : echo $this->BRANCH_NAME["LA"]; i didnt get you why this code considered ugly
  8. Dear all , i am trying the following : i have a class named ACCOUNT with many properties in .some of these properties are array , it is like this : class ACCOUNT { PRIVATE $DB_LINK; PRIVATE $COMP; PRIVATE $BRANCH; PRIVATE $CURRENCY; PRIVATE $GL; PRIVATE $CIF; PRIVATE $SL; PRIVATE $EXIST; PRIVATE $STATUS; private $ACCOUNT_NAME=ARRAY("LA"=>'',"LE"=>'',"SA"=>'',"SE"=>''); private $ACCOUNT_BALANCE =ARRAY('FC_YTD','CV_YTD','CV_BAL','YTD_BAL','BLOCKED_CV','BLOCKED_FC'); private $CY_NAME=ARRAY("LA"=>'',"LE"=>'',"SA"=>'',"SE"=>''); private $ACCOUNT_NAME_USR=ARRAY("LA"=>'',"LE"=>'',"SA"=>'',"SE"=>''); private $LEDGER_NAME= ARRAY("LA"=>'',"LE"=>''); i have created the following method to call any property [code] FUNCTION GET_SPECIFEC_ATT($ATT,$LANG) { $ATT=$ATT."['L$LANG']"; ECHO $this->$ATT; } but i am getting the below error : Notice: Undefined property: ACCOUNT::$BRANCH_NAME['LA'] in D:\wamp\www\EBANK\account.class on line 186 if i used this : echo $this->BRANCH_NAME['LA']; it is working fine . and the method is working fine i can iam trying to call property which is NOT an array. Can you please help me in what iam doing wrong ? Thanks in advance
  9. if i got you right you can use this $curl = curl_init(); curl_setopt ($curl, CURLOPT_URL, "$URL"); $ANSWER=curl_exec ($curl); curl_close ($curl); where $url is the link you want . please notice the curl is an extension you have to add . It has many available options to use .
  10. it is quotes issue ; try this : $query = "select * from users where username='$username' and password='$password'";
  11. i was looking at wrong place , it is not a php error ! It is IE8 BUG! the images i was using were made in CYMK mode , not in RGB mode,while IE8 only support images created in RGB mode! the solution i came up with is converting the image mode before uploading it! Thank you all!
  12. i prefer using PHPDesigner , but it is not free:) it has more functions and help you a lot in formatting your code and checking it . if want free one you can use the notepad++ or any other suggested ones . good luck
  13. i dont think there is a url like that . it is either a GET method with format like : www.blalba.com?r=vlaue which you can get with $_GET['r'] or a post method with format like : www.blalba.com which you can get with $_POST['r'] please correct me if i am wrong .
  14. Same Error
  15. yes, also check the code for the non-closed tag. try to use some editor like notepad++ or phpDesigner , it will help you with syntax errors
×
×
  • 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.