Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. What kind of window do you want? What GUI framework are you using? What IDE are you using? When do you want it to open? Do you have any Java experience? (I assume no) We need more information.
  2. Do you want to do this in Java or Javascript?
  3. That's no what the OP wants. Please read the previous posts.
  4. That would still require two queries...
  5. I see. Sorry, I'm not aware of a way to do this in a single query.
  6. I think you need, mysql_insert_id.
  7. Try this: if($selectedLetter == '#') { $sql = "SELECT DISTINCT ID, name, address FROM restaurants WHERE name REGEXP '^[0-9].*' ORDER BY name ASC"; $result = mysql_query($sql) or die(mysql_error()); }
  8. Maq

    Upserts

    I don't understand why you are assigning something to 'submit'. Take that line out, you aren't using it, nor should you be.
  9. I agree. What are the conditions? The only thing I see is that it must be a number be 0-9. In this case, you would just need a single check and a single query. if($selectedLetter >= 0 && $selectedLetter $sql = "SELECT DISTINCT ID, name, address FROM restaurants WHERE name LIKE '{$selectedLetter}%'"; $result = mysql_query($sql) or die(mysql_error()); }
  10. Sir, there have been 2 separate people trying to explain this quite elaborately. I was not calling you an imbecile or stupid, so please don't shove words in my mouth. I simply stated that explaining the same thing over and over again would not help and there nothing else I could do.
  11. Maq

    Upserts

    You're assigning the same variable to 4 different $_POSTs. $Added = $_POST['Added']; $Added = $_POST['Foil']; $Added = $_POST['Buy']; $Added = $_POST['Buyprice']; Should be: $Added = $_POST['Added']; $Foil = $_POST['Foil']; $Buy = $_POST['Buy']; $Buyprice = $_POST['Buyprice'];
  12. He does. Those members who are 'trusted' are already ranked (Guru, PHPFreaks Recommended, etc...) Sorry, I don't know what else to say to help you understand.
  13. Any user above regular, even if you are not the owner of the thread can mark it as solved? Yes... If you had to be the owner of the thread, then why would Daniel0 even be explaining this? Again I tried marking one as solved in the PHP help section, the button doesn't show for me. Thanks for the replies btw. Again, that's because you're a regular use. Everyone here, except 'Supporter', can mark as solved.
  14. Any user above regular, even if you are not the owner of the thread can mark it as solved? Yes... If you had to be the owner of the thread, then why would Daniel0 even be explaining this?
  15. What exactly are you trying to do? This code makes no sense.
  16. You have marked this as solved, but your post seems as though you're still having an issue. Which is it?
  17. Where does this POST come from? if (!isset($_POST['post'])) { Are you submitting information from another page to this one?
  18. Oh ok great. Don't forget to mark solved.
  19. You're checking if a field named 'post' is being submitted, I think it should be 'submit'.
  20. Brackets? Not sure what you're referring to. If you're referring to the french braces as 'brackets' then you will still have to escape the inner double quotes. Can I see your final code?
  21. A few tips/issues: - You want to use double quotes for the primary string (like you did). - You want to use single quotes for attributes with the inner HTML in your echo (so your variables will interpolate). - Finally, you want to use curly brackets to distinguish your variables, so each are viewed as separate. Try: echo "Text Link";
  22. I agree with MatthewJ, it's best to Google and example for your Homework.
  23. Can you post your relevant code?
  24. Use tags. What exactly is the issue?
×
×
  • 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.