Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. ...
  2. find the query_posts function.
  3. The problem is....?
  4. Set the body and html margin to 0 px in your CSS.
  5. You either want to clear ALL entries in the table, or you want to clear SOME with a where clause. Which is it? DELETE does not allow column names or *. You delete the whole row. If you were checking for errors it would help.
  6. Including the error you get might help. However you're missing the { } around your if else statements. if($s){ //code //code }else{ //code //code }
  7. I suggest you read up on functions and scope. It has nothing to do with OOP, you're trying to use a variable within a function without passing it to the function. If you want to actually make it OOP, it would probably be better in the long run and help with your scope issue, but it's hard to grasp for newbies so you might choose to just stick with functions and procedural for now. *shrug*
  8. By which I mean an actual specific problem, not just "I need to do X." That's just a statement of fact.
  9. mysqli_query There are some good examples of doing queries in the manual. It's hard to point you in any direction if you don't say what you're having trouble with.
  10. Your error is the mysql version. The post is about mysqli. The practice of checking for errors is exactly the same, except you use the mysql functions instead of the mysqli ones.
  11. If you don't understand what $sql is supposed to hold, then you need to hire someone to fix the script for you, or learn PHP and MySQL.
  12. Did you look up array_slice? The error is very clear about what's wrong.
  13. You're not checking for errors. Read the link about debugging SQL, it shows you how to check for SQL errors.
  14. This forum is where you try stuff, and we help you fix bugs. You have to try it on your own. You've been given a direction.
  15. What is the problem you got?
  16. See the link in my signature.
  17. I think we have a winner already for most vague question in 2013.
  18. Well you can start and ask for help when you get stuck, or you can post in the freelance section. Try google. It's cool.
  19. Yep, I stand corrected, when using the slashes only it works. Sorry about that. I do think it'd be better to fix the JS to use a YYYY-MM-DD format but Op should be able to get it working with strtotime now.
  20. Which part, the programming or the posting in the freelance board?
  21. It does matter.
  22. Your code basically does this: call f(0); echo before: 0 call f(1); echo before: 1; call f(2); exit f(2) echo after: 1; exit f(1); echo after: 0;
  23. Either use a template engine like Smarty or just use includes.
  24. Google "normalization".
×
×
  • 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.