Jump to content

Pikachu2000

Staff Alumni
  • Posts

    11,377
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Pikachu2000

  1. You aren't really using hidden form fields to hold pricing information being sent to paypal, right?
  2. Have you echoed $_SERVER['PHP_SELF'] to see if that gives you a clue what the problem might be?
  3. Don't double post. I've deleted your other thread.
  4. As long as you're editing things, you'll probably find debugging a lot easier if you make the query string readable by getting rid of all that obnoxious concatenation. $query = "INSERT INTO image ( title, type, name, alt, img, description, date) VALUES ( '$title', '{$_FILES['userFile']['type']}', '{$_FILES['userFile']['name']}', '$alt', '$image', '$description', NOW() )";
  5. You want the MySQL function NOW(), not $NOW(), and it shouldn't be in quotes in the query string.
  6. I'm assuming since you posted in the MS SQL forum, you're indeed using Microsoft SQL? If so, here are all of the mssql functions: http://us1.php.net/manual/en/ref.mssql.php If not, what database are you using?
  7. You've say echoed the whole query when the error occurs? Post that as well. INT(2) only sets the display width, not the number of digits the field can hold, a single '1' would be padded with a zero to read '01'.
  8. I'm going to guess that $id has no value. If the `id` field in the database is an autoincrement field, you can just leave it out of the query entirely. Why use INT(2) by the way?
  9. You aren't executing the query, you're just passing the variable containing the query string (as would be implied by "string given") to mysql_fetch_array().
  10. You aren't paying attention to syntax. Look at the differences in the html tag attributes.
  11. To have a static html document for every day in the calendar completely defeats the purpose of using a dynamic language like PHP. It would be much more efficient to just load content based on the date than to redirect to a page with a file name that matches the date.
  12. That error usually means there's a missing closing curly brace or semicolon. Aside from that, that code is years out of date, and should be updated before being used in the real world.
  13. http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html
  14. When posting code, enclose it within the forum's' . . . BBCode tags. For your header problem, read this first: http://forums.phpfreaks.com/topic/1895-header-errors-read-here-before-posting-them/
  15. WHERE username != 'specific user name' Or possibly WHERE username NOT IN('username', 'another', 'and another')
  16. SocialCloud, the second example does not have the variable in single quotes.
  17. Probably be less confusing without all that obnoxious concatenation. $to_insert ="INSERT INTO login VALUES ( '{$_REQUEST['fullname']}', '{$_REQUEST['email']}', '{$_REQUEST['username']}', '{$_REQUEST['password']}' )"; Just sayin' . . .
  18. Your redirect happens regardless of whether mail() succeeds or fails. There is no way for php to know whether the mail was sent or not, only if mail() successfully transferred it to the MTA.
  19. Dear Mister gracious sir, I am prince and king from of Nigeria country, and my name is Mfubwe GoodCause . . .
  20. Add the disclaimer and checkbox in the form that takes the user to the payment page. There, verify that the checkbox was indeed checked before even allowing the user to pay.
×
×
  • 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.