Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Are you sure you're passing these values as arrays from your form. i.e. - Before your switch, try to print the array: print_r($_POST['move']);
  2. This looks pretty informative and helpful: http://www.learnerassociates.net/dissthes/
  3. I would assume the opposite. Wouldn't you want to have consistent names? Making two functions that have the same exact effect would make no sense at all.
  4. Looks fine to me. How do you know it's blank? Try hard-coding some text: text:
  5. Is that the final version? If not, do you mind posting it?
  6. From the manual: There you go, require_once() does an extra check to see if the file has already been included.
  7. You should have a field in your database called something along the lines of, "approved". The values should be either '0', waiting for approval, or '1', for approved. That way, when you display the gallery you can include this condition in your query to only display the photos that have been approved. As for listing the queued photos, you can do the opposite. You can list all of the photos in the queue with a '0' for the "approved" column along with a corresponding checkbox. When you submit this page it should iterate through all of the checked photos and update the database to have these photos approved (1). Do you have any of this page setup yet?
  8. It's a URL encoding. The '%20' is a space. Try calling urldecode on it.
  9. Sorry, I'm not too familiar with PHP and ORACLE but you can put these lines directly after your opening <?php tags to display errors. ini_set ("display_errors", "1"); error_reporting(E_ALL);
  10. Maq

    Store Procedure

    Please don't tell me you couldn't find any tutorials online about this? It's better if you read one, try it out yourself and, if you get stuck on a specific step, come back with your code and ask for help.
  11. So it works on your Mac OS but not on the PC's? Please just post the relevant code, surrounded by tags.
  12. Again, I'm not sure why it was using hex, but there's no reason for it. So I took it out. Me either, although I guess it kind of makes sense.
  13. Thanks for posting your solution. Remember when posting code to surround your code tags.
  14. Hmm not really sure exactly what you're talking about. What I don't understand why it's returning true when nothing is actually being removed...
  15. Do you mind sharing? Bottom left, right above "Quick Reply".
  16. Weird, your query looks perfectly fine. Mind sharing what the error was?
  17. Echo out $sql and see what the value is.
  18. I think you have an extra parenthesis here (only need 2): ['title'])))>36) should be: ['title']))>36)
  19. Try this: 36) ? substr($list['title'], 0, 36) . "..." : $list['title']; ?>
  20. Im using Encrypt() and Clean() . I know that. But you posted 2 separate functions with those names. The first set: Problems: You don't return anything in either of these functions. And the second set: Problems: You are missing a terminating '}' for your 'Encrypt()' function.
  21. Which functions are you using? You listed 2 separate ones with the same name...
  22. You have to return the values from your functions: return mysql_real_escape_string(stripslashes($input)); and return sha1(md5($input));
  23. Echo out '$_POST['username']' and '$_POST['password']' to make sure there are values being sent. If there are, see what exactly your 'Clean' and 'Encrypt' functions return. That's the only way your if wouldn't be true.
  24. Can you post some of the code surrounding your rmdir call?
  25. Good, remember to take out the 'or die' clause, it should not be used on a live server. It's just a quick way to diagnose your queries.
×
×
  • 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.