Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Set the body and html margin to 0 px in your CSS.
  2. 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.
  3. Including the error you get might help. However you're missing the { } around your if else statements. if($s){ //code //code }else{ //code //code }
  4. 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*
  5. By which I mean an actual specific problem, not just "I need to do X." That's just a statement of fact.
  6. 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.
  7. 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.
  8. 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.
  9. Did you look up array_slice? The error is very clear about what's wrong.
  10. You're not checking for errors. Read the link about debugging SQL, it shows you how to check for SQL errors.
  11. 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.
  12. I think we have a winner already for most vague question in 2013.
  13. 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.
  14. 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.
  15. Which part, the programming or the posting in the freelance board?
  16. 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;
  17. Either use a template engine like Smarty or just use includes.
×
×
  • 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.