Jump to content

xinteractx

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by xinteractx

  1. oh wow.. sorry i did not even see the logic flaws. I am so not use to short tagging.. <?=$amount?> .. maybe because I use php5 or something..
  2. Hello All, I been fighting with this code all day yesterday and for the life of me it is not working... Anyone provide any help please with caffeine ontop.
  3. here a old script i wrote about year ago. 32400000 is milliseconds i think.. i also used my own custom session control and a time stamp the sessions inside my database. if they where not stamped within the time period the session would be removed from the db and then they javascript would fire locally to make sure they know they been kicked. I stamped the session each time they browsed to another page and used this script of more of a inactivity kick script to kick the users off if they left there pc running all day and forgot about it and went home.
  4. I don't think you should output to the browser with any type of print statement directly from the object. I think you should returned the result to your application then have your application output to browser
  5. Object oriented coding is is different form of thinking. think of it like linking many functions together and each function can do its own thing but knows what all they other functions do.. now multiply this by 100 and you now have object oriented programming.. you can duplicate your entire project and override one function etc. instead of calling the same function, you can duplicate it and call it as its own object with its own properties etc.
  6. Hello All I am new to the forum, i just joined.. looking forward to a good place to meet other pro php developers. My OO knowldge is very limited, I been doing mostly php procedural coding. I am starting my next project here at work and I trying to do this one with a CLASS Objects to see how it all works out. I am getting some errors, and Its prob because I dont know OO and PHP. I read a bunch of documents on it, however there are still little questions I cant seem to find exact answers for. Below is the code I wrote so far to connect to the database. But I keep getting a error, and I think it has something to do with the this->$db_primary_object part of the code. maybe some hidden rules with php and OO i am not getting ? Parse error: parse error, unexpected T_OBJECT_OPERATOR in \htdocs\sales\include\db.php on line 21 here is the basic code i am using to test the object.
×
×
  • 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.