Jump to content

Don E

Members
  • Posts

    996
  • Joined

  • Last visited

Posts posted by Don E

  1. Depending on how you're handling the users' on your site, meaning their login status/sessions, etc, you can have it where if the super user is logged in and goes to the page with the form, then show that field for the super user. If regular user logged in and goes to that page with the form, do not show the field.

  2. Hello,

     

    I am trying to understand the following code that's in the link below as to how to calculate the new Top position of an element that's been rotated with CSS..

     

    Please see this link to get a better picture of what I am referring to: http://jsfiddle.net/Y8d6k/

     

    I can't seem to find where in the code, mostly jQuery(not too familiar) the actual caculation is taking place?

     

    This is where I got the jsfiddle link form: http://stackoverflow.com/questions/11229040/how-to-get-the-position-of-element-transformed-with-css-rotate

     

    Thank you in advance!

  3. Try another browser in regards to caching and see if you get anything.

     

    For testing and simplicity sake, I would do a simple Select all. It may be an error with the prepare, binding param, bind result. Are you checking for mysqli errors?

     

     

    See if this is returning true or false:

    while(mysqli_stmt_fetch($stmt)) {
    //show recipes

    Check this as well, true or false. Add an else clause to it so that if it's false, it'll enter the else clause and echo something out to indicate it's false like, echo 'entered else clause, prepare is false'; :

    if(mysqli_stmt_prepare($stmt, "SELECT * FROM myTableName WHERE _category=? AND _approved='1' ORDER BY _id DESC LIMIT ?, ?"))
  4. Hello,

     

    Is each record (row) for the image column in the database table updated to just the image names? Have you looked at the table itself in phpmyadmin to see/make the changes... or to actually see if the changes were made? Are you getting any errors anywhere?

     

    I am sure you are but make sure you are connecting to the database that has the newly updated table incase you may be connecting to the old database that has the long image path column table.

     

    If after you made the changes and you have inserted new images (image names) into the table with your insert command still containing the path to the image name instead of just having the image name, you may want to see to see how your INSERT command looks like so that it only has the image name for the image.

  5. Something like this?:

    <!doctype html><html>
    <head>
    <meta charset="UTF-8">
    <title>brook</title>
    </head>
    
    
    <style>
    h2{
        text-decoration: underline;
        margin-bottom: 30px;
    }
    .anke{
        display: inline-block;
        margin-left: 60px;
        font-family: corsiva;
        font-size: 20px;
        overflow: hidden;
        float: left;
    }
    .father{
        display: block;
        margin-left: 60px;
        font-family: corsiva;
        font-size: 20px;
        overflow: hidden;
        float: left;
    }
    .mother{
        display: block;
        margin-left: 60px;
        font-family: corsiva;
        font-size: 20px;
        overflow: hidden;
        float: left;
    }
    .brother{
        display: block;
        margin-left: 60px;
        font-family: corsiva;
        font-size: 20px;
        overflow: hidden;
        float: left;
        clear: left;
    }
    
    
    .sister{
        display: block;
        margin-left: 60px;
        font-family: corsiva;
        font-size: 20px;
        overflow: hidden;
        float: left;
    
    
    }
    .others{
        display: block;
        /*margin-top: 20px;*/
        margin-left: 60px;
        font-family: corsiva;
        font-size: 20px;
        overflow: hidden;
        float: left;
    }
    </style>
    <body>
    <div class="anke">
         <h2>Anke</h2>
              <ul>
                   <li>Main Character</li>
                   <li>Doesn't fit in with family</li>
                   <li>Isn't abused</li>
                   <li>Isn't loved</li>
                   <li>Loves to play volleyball</li>
                   <li>Is smart</li>
              </ul>
    </div>
    <div class="father">
         <h2>Father</h2>
              <ul>
                   <li>Abusive</li>
                   <li>Moody</li>
                   <li>Mood Swings</li>
                   <li>Loves his wife</li>
                   <li>Often drunk</li>
              </ul>
    </div>
    <div class="mother">
         <h2>Mother</h2>
              <ul>
                   <li>Sweet Mother</li>
                   <li>Loves her children</li>
                   <li>Takes care of husband</li>
                   <li>Secretly scared</li>
              </ul>
    </div>
    <div class="sister">
         <h2>Sister</h2>
              <ul>
                   <li>Name is Yaicha</li>
                   <li>Older Sister</li>
                   <li>Likes makeup</li>
                   <li>Constantly abused</li>
              </ul>
    </div>
    <div class="brother">
         <h2>Brother</h2>
              <ul>
                   <li>Name is Darren</li>
                   <li>Older Brother</li>
                   <li>Constantly abused</li>
              </ul>
    </div>
    <div class="others">
         <h2>Other Characters</h2>
              <ol>
                   <li>Angelina
                        <ul>
                             <li>Annoying 'friend' of Anke</li>
                             <li>Very innocent</li>
                             <li>Doesn't have a dad</li>
                             <li>Likes Anke's dad (as a father)</li>
                        </ul>
                   </li>
              </ol>
    </div>
    </body>
    </html>
  6. That is saying to: "apply border to a p element inside an element with the class hours." which is not the case for you. Instead, what you have to do is: .hours1 without p in the CSS declaration.

     

    To be more specific you can do p.hours1 as well. Don't forget to add solid (or whatever you prefer, dotted etc) for your border: .hours1{border:2px solid; color: red;}

    php

    Don't know how accurate this is but for sake of it, this may be a useful list to see who is using what: https://en.wikipedia.org/wiki/Programming_languages_used_in_most_popular_websites

     

    I don't recall, but why is PHP not good for larger scale projects again? According to the list above, the larger sites that use PHP, use PHP but have created their own versions of PHP so to speak (which is still PHP) like XHP and Hack. I guess they did this because of scaleability issues?

     

    Thanks.

×
×
  • Create New...