Jump to content

Don E

Members
  • Posts

    996
  • Joined

  • Last visited

Everything posted by Don E

  1. Comma should between "localhost" and "root" like: "localhost", "root" Just to note, it's recommended to use mysqli instead of mysql. Mysql is deprecated.
  2. Try adding parenthesis to onmousedown="touchRightArrow" : onmousedown="touchRightArrow()"
  3. Hey JSG.. Just wanted to write and say you guys are awesome man. With the many questions asked and patience with "some" questions shows how much you (and other mods as well) care about this forum and how much you like to teach/help others! Shows/says a lot!

  4. 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.
  5. Hey musicman, That happens unfortunately and because of that and anything else, I usually make/keep back ups of everything on external hard drives. Yes that's hard drives with an 's' because you never know...
  6. Yes after looking into the offset function at jQuery docs, it does get the new top position from the offset function. Thanks.
  7. 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!
  8. Hello and welcome. Check and make sure you 'test.php' in the 'project' directory. 404 Not Found means the requested file (web page) was not found.
  9. 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 ?, ?"))
  10. 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.
  11. What Foxy said is most likely the issue(s). To get a definite answer, do you have access to the server error log(s)? You should be able to see as why you're getting the error.
  12. Don E

    php sql certification

    Hello, You can try contacting w3schools.com via support@w3schools.com or/and billing@w3schools.com Good luck.
  13. Don E

    Css- rgb color

    Instead of periods/dot . replace that with commas like the following: Body {background-color: rgb (100, 100, 90) ; }
  14. Hmm possible, but according to a quick search: http://stackoverflow.com/questions/12710803/undefined-variable-php-self near the bottom a user wrote: That may be it in this case as well.
  15. Hello Jim, That looks like that's suppose to be $_SERVER['PHP_SELF']; or $PHP_SELF was assigned the value of $_SERVER['PHP_SELF']. http://php.net/reserved.variables.server
  16. 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>
  17. Don E

    Html/css Template

    Not necessarily. It could just mean he wants a tactful honest evaluation.
  18. 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;}
  19. Go to this link: http://php.net/manual/en/function.readfile.php There you'll see an example of what you're trying to accomplish. Check to see if you're missing anything from your code compared to the example.
  20. Shows true for me when having it as: checked="checked" in firefox. Try having just checked with no double quotes: checked
  21. Is $product suppose to be string containing a product name? You can have the if statement inside the foreach loop. When it loops through and $product is equal to $items, then do something.
  22. Don E

    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.
  23. Try posting your HTML and CSS so forum moderators/members can help you better with your issue.
  24. hey dds1, do you mean you have one database and inside this database you have 3 tables x, y, and z?
  25. Looks like missing semicolon for the include line. Could be it for the error.
×
×
  • Create New...