Jump to content

matthewhaworth

Members
  • Posts

    234
  • Joined

  • Last visited

    Never

Everything posted by matthewhaworth

  1. <FORM NAME="sort" method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <SELECT NAME="earcode" <OPTION VALUE=""></option> <OPTION VALUE="ALL" selected="selected">Display all Earrings </option> <OPTION VALUE="E">Display only Earwire Earrings</option> <OPTION VALUE="P">Display only Post Earrings</option> <OPTION VALUE="L">Display only Lever back Earrings</option> </SELECT> <input type="submit" value="Display Selected Earrings"> </FORM> You're missing a '>' here: <SELECT NAME="earcode" . That's what lol
  2. Perhaps the line was in there to begin with, before php dealt with it? Delete absolutely everything out of the xml file and try again?
  3. <script language="javascript"> <!-- sfHover = function() { var sfEls = document.getElementById("side").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover); --> </script> I think it's in your javascript..
  4. The offending tag is in the body properties: body { background: #000099 url(images/back.png) top center repeat-x; margin: 0; padding: 0; font: normal 8pt/13pt verdana, arial,sans-serif; /* THE 8pt/13pt IS THE PROBLEM */ } I'd make it 13pt, or .. 10pt cos 13pt looks too big, then I'd put whatever needs to be 13pt in a p tag wherever it needs to be bigger. p#biggertext { font-size: 13pt; }
  5. Ok, I was a n00bie, then a forum regular, now I'm a forum helper, yeaa Smiley. But what's next, and what's the highest you can be? What does it take to be a moderator?
  6. $id = 12; $_SESSION[$id] = true; echo $_SESSION[$id]; Outputs: true Simple answer? Yes, you can
  7. Ask in the apache forum.. though I think it can be changed in php.ini too
  8. I'm not the best with xml, but does that matter? Perhaps PHP just goes onto the next line ready to input data http://uk.php.net/manual/en/ref.dom.php
  9. But it's not php :-(. Go to the HTML forum.
  10. To be honest, I wouldn't use the double quote at all. Also, you're not really asking us for anything, unless the error was what you were after..
  11. I think I understand, but you haven't answered my question.. hmm, could you do me a quick diagram of your structure?
  12. Also note, that the factory does more than just pass objects, it performs registration and login (it's the login function that passes the object)... it's never initiated.
  13. I hate to do this, but please read the FAQ/Code Snippet Repository before posting here: http://www.phpfreaks.com/forums/index.php/topic,95867.0.html
  14. What do you mean by the database layer? I don't get what your code, DAO Data Access Objects, what're they? Is it my database class being passed to my classes instead of implemented?
  15. Do implement db.class twice? Or can an implemented object use resources from the object it's implemented into? Context? Can image.class use functions from db.class once it's implemented into user.class?
  16. Thanks for the elaborate reply . All this is confusing me, I still think the interfaces are pretty useless, but meh. I have a method of doing it now that I'm not to keen on, but ill go with it.. the reason I'm not to keen on it is because I have a class called UserManagement that deals with registration, login, but when they login, it returns a class.. so I call it a KIND of factory.. all the functions are called like $usermg::Register(); but I don't know if it's a factory..
  17. I might implement the database class instead of passing it to the new object, thinking about it.. let me know how your forum goes
  18. Ok, recently, as you can probably derive from the threads around this one, I have learnt a lot about, inheritance, abstract classes, interfaces and abstract factories.. After thinking a lot into I decided this is a possible option: I create a class called 'UserFactory' that returns either the admin or user class.. but i don't think that's efficient because where would the register and login methods go? In the factory? but then its' not just a factory :S. I create a user class, and usermanagement class, the usermanagement class deals with login, register, setsession etc, but the user class deals with stuff like, profile, pictureupload, etc..
  19. Graphs are maths! I do not see why my thread was moved.
  20. Has it been done before and is it possible?
  21. I think you're using the wrong operator for your $user and $pass check, it's == not =
×
×
  • 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.