Jump to content

ManiacDan

Staff Alumni
  • Posts

    2,604
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by ManiacDan

  1. rand accepts a min and max argument.
  2. You sort of stumbled upon the right answer in your post in that thread, but it was still the right answer. The best thing you can do is say "I'm not sure but this seems to work" and leave it open ended. If you're not positive what you're saying is correct, tell the user that so they don't take what you say as gospel and move on with their life without coming back to the thread for additional information. Also, check that thread again for more data on comparison operators.
  3. Everyone (except requinix since he's read it three times already) should read this
  4. Please don't bump your threads or report a moderate as an abusive member. Your thread is in the correct section and if someone is interested in replying they will.
  5. The @ before your mail() call suppresses errors. Perhaps that would help you actually see the errors. also, you should be using paypal or google checkout or something to handle your payment processing.
  6. You should not be using htmlentities on these addresses, you should be using mysql_real_escape_string. Glad you got it working.
  7. I really can't help you if you don't read the message. Again: The code that INSERTS the email addresses into this table has a dot in it, where there should not be a dot. Emails don't just magically show up in your database, something puts them there. That something is wrong.
  8. There's probably a dot in the query that INSERTS these emails. You have to fix that, then delete everything from this table and start over. If this site is "live" and these are real addresses, you'll have to update them all to be correct.
  9. There is no such output in your code.
  10. Does the email address entered match an email address in the table exactly? Including spaces and tabs? Seriously, read that twice before answering.
  11. So you get the error about "emailaadress" without "emailaadress" being in the code anymore?
  12. You have one constant "step": the execution time of the program. Every "Step," the program spits out another unit. When that happens, calculate how far the printer has gotten on the buffers. If there's a free buffer, put the unit in there and continue to the next step. If not, wait.
  13. Please read and respond to entire posts, not just the first sentence. Note that I gave you debug steps in #2 above that you have not addressed. Are there spaces? Does the database match their input EXACTLY?
  14. Remember that?
  15. What I'm saying is: this is a PHP forum. This question is more suited to a low-level programming language which would actually be expected to deal with things like buffers...or printers for that matter. PHP deals with neither. Also, your textbook probably defines "software output buffers," generally we don't know what to do with the information that the buffer is 5. 5 what?
  16. In your code here, $result is the result of mysql_query. $result is either: A) A mysql_resultset resource, on which you can call mysql_fetch_array, mysql_num_rows, etc. B) false, which indicates a query error. So: if ( $result == false ) { echo "THERE WAS AN ERROR: " . mysql_error(); die(); } Of course, there are far better ways to handle errors, but this will actually show you on the screen what the error is. You should also echo the query itself, so it shows up alongside the error and you can see if something is misspelled, like it is in this case. -Dan
  17. There's a number of things here: 1) You absolutely positively must stop this instant and wrap everything in mysql_real_ecape_string if it comes from the user. Your site is grievously vulnerable to SQL injections. 2) If this isn't working, find out why. What did they enter? How does it not match what's in the DB? Are there spaces? Your code is fine aside from #1 above.
  18. Please stop using the [ m ] tag to format your PHP, you must use [ php ] tags.
  19. This course is at a much lower level than PHP.
  20. You're not doing any error-handling on these queries. Use mysql_error to view an error if the result of mysql_query is false. Also, you spelled address wrong in $duplicate, that's the actual problem.
  21. The political discussion that had started in this thread is now split into its own thread. Please use this thread to discuss domain registrars and web hosts only.
  22. A fox news reader!? GET HIM!
  23. GoDaddy supported SOPA, so a bunch of people transferred away from them (including big names like Wikipedia and Penny-Arcade). GoDaddy was interviewed about the mass exodus and said something to the effect of "we're seeing a lot of noise, but it hasn't hurt us financially at all." The hivemind decided to make an example out of them.
  24. I don't know if you're being serious or not, but it IS international dump godaddy day. I never had domains with them in the first place. "Titties 'n Nascar" is not an advertising campaign that appealed to me.
  25. Reddit has been researching this for you.
×
×
  • 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.