Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. str_replace() ? If you post some sample code we can help better.
  2. Hey I'm a Sun Certified Java Programmer. (la dee dah, right?) Every language has it's strong points and weak points. I don't think using weak typing encourages laziness, but makes it easier to pick up and start working. In Java, it often takes a lot more work to do something simple - but if you need an "enterprise" app, Java is often a better choice. It just depends what you're doing. Doesn't mean PHP makes people lazy :-P
  3. It's correct in PHP. If PHP had strong typing, it'd be wrong. But it's fine since that's what the language supports. If you don't want to take advantage of the weak typing, that's fine, but that doesn't make it wrong to use ! on many types. What you said was wrong. You said it would cause an error, and it doesn't.
  4. PHP uses weak typing. You can use ! on false, 0, null, anything.
  5. You didn't ask for advice or ideas on how to do it, you asked if anyone would do it for you. I quote: "Would anybody like to design a small application for me as something to test your skills? I will try and explain what I am requiring:" What is the code you had problems with? You said you were unsuccessful - we're more than happy to help fix errors.
  6. Post in the freelancers forum. Remember, you get what you pay for. You want good code, hire a good coder. You want free code - you'll regret it.
  7. It's always worked for me. Maybe it's an ini setting.
  8. [code]if(!$_GET['page']){   $page = (whatever your home page num is) }else{   $page = $_GET['page']; }[/code] You need to read about SQL injection too. And what is up with your query? Take out the WHERE 1 AND, just do WHERE
  9. No, the whole string is single quoted, so they're fine. I don't see any errors. Post more of the code and use the code tag (The #)
  10. magic that's not true. But yes, you can take it out.
  11. If you have @, does the or die still take effect? I don't know - what happens if you take out the @ on your select_db? you have $_post instead of $_POST Plus you need to use $_POST['var'] not $_POST[var] PS: It's should have, not should of.
  12. Where is $con defined?
  13. It's in several places, btw.
  14. That is english :-P Post the lines around where the error is, and we can help you find it. It means you left some php syntax out, such as forgetting to close a string or end a line with ;, etc.
  15. Good idea. You should always understand your code! Best of luck.
  16. Why can't you? Create the image and then use the GD library. Why won't this work?
  17. If they can take any quiz, why does it matter? If they can't take any quiz, use what you use to determine who takes what quiz, and check if they're eligible before showing it. If they're not, print an error.
  18. First, stop suppressing errors - no wonder you can't find them. Turn on error reporting and take out the @s. Use require instead of include for better errors.
  19. I love Textpad - I've used it for years. Great editor.
  20. I don't think you need to add one, but remove one from the two on line 90 & 91
×
×
  • 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.