Jump to content

ShibSta

Members
  • Posts

    112
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ShibSta's Achievements

Member

Member (2/5)

0

Reputation

  1. Try adding padding to the containers instead of margins to each individual element. For example, add padding:85px 0 0; to #content and remove the margin from the left/right content boxes.
  2. 1) Simple, because both forms are using the class delform which says to clear: left; float: left. 2) Related to #1, both forms are not using the delform class. 3) Which version of IE are we talking about?
  3. On older browsers, the hover will only work on <a> tags. You can use JavaScript to change the style though. If you are talking about newer browser versions, I suggest you provide a link to a test page where the problem occurs and specify the browser name(s) and version number(s) that are not rendering as expected.
  4. I think you're confused, that code should have been placed in DB.php within the user_login() function. In Register.php, you can use: $sql = mysql_query("SELECT `username` FROM `usersystem` WHERE `username` = '".$username."'");
  5. $row_uruns is not defined within menuGetir(); you're using $veri. Try: $kategoriler .= "<li><a href='index.php?MX=urundetay&kategori_id=".$veri['kategori_id']."'>".$veri['baslik']."</a>\n";
  6. Your query within' user_login is trying to match two strings instead of the value of your variables. Try: $sql = mysql_query("SELECT * FROM `usersystem` WHERE `username` = '".$username."' AND `password` = '".$password."' LIMIT 1");
  7. You'll need to add a conditional within' your loop if( empty( $var ) && $var != 0 )
  8. Try this: $kategoriler .= "<li><a href='index.php?MX=urundetay&kategori_id=".$row_uruns['kategori_id']."'>".$veri['baslik']."</a>\n";
  9. Look at the array_keys() function in PHP.
  10. It has nothing to do with the code you posted, the code will work. Something that you did not post is causing the problem, such as a blank line (as mentioned by BlueSky).
  11. The mail function is: mail( $to, $subject, $message[, $additional_headers [, $additional_parameters ]] ); Not: mail( $to, $subject, $message, $from ); ============================================ Also, according to RFC 2822 - the format for the From address should be: $visitor <$visitormail> Not: $visitor ($visitormail) This may help you with the headers too: http://www.webmasterworld.com/forum88/13383.htm
  12. What is it doing? Does it redirect you to Yahoo! or does it echo that an error has occurred? I'm guessing that the script does in fact redirect you to Yahoo! and if you were to look through your server logs you would find that it also dispatched the email. My guess is that Google is simply blocking the email due to it's lack of proper headers. Hope this helps
  13. @rwwd, I appreciate the time you took to assist me, but you actually removed braces that were required; the code now has fatal errors. Also, you changed some of the logic that didn't need changed. On the first if/else, the else was meant to be only 1 line and not a block. I know OOP is huge and I need to learn it or I'll have quite some trouble around this time next year when I'm a computer science major. I am trying to learn the basics now and am stuck with the problem I've posted in this topic. This isn't for a website or part of a pre-existing script, I am doing this as an educational experiment, on my own time, to try and understand OOP a little better. Also, I'm running PHP 5.2.9 The problem remains and I'd appreciate it if someone could look into how I'm actually calling methods from other objects and how I'm passing objects through references; I believe that is where my problem lies. However, I do not know enough about it to resolve the issue on my own. Thanks again,
  14. @rwwd: I wasn't receiving an error so I'm not sure how there could have been an extra brace, it would have given a fatal error... Anyway, I'm on my mobile phone right now - I'll look at the changes you've made to the code hen I get home. I am completely new to writing OOP and dealing with the relationship between objects, therefore, I am open to suggestions and would love to know how you would approach it. I don't know anything about design patterns or the common practices in dealing with the ability to access one object from within another so I'd appreciate and additional tips. Thanks again
  15. Sorry, I had not slept in 32 hours at the time of posting this - I kinda forgot to explain the actual problem. lol Anyway, the problem is that the "Dashboard" menu item is not added to the menu from the hook. I think it's referencing things incorrectly but I cannot find out where. The code is standalone, if you copy it into a php file and run it - you will see what it's currently doing. Currently, it outputs: Link 1 Link 2 However, it should output: Link 1 Dashboard Link 2 Thanks again.
×
×
  • 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.