Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Well yeah, I did. I figured out of the number of people replying here, it was likely that someone was getting it wrong. *shrug*
  2. Are you still confused about why when you visit that page, $_GET['AccountID'] is empty?
  3. Must be something else within the code somewhere.
  4. Run this on a page: $flag_lookup = mysql_query("SELECT username, flag FROM users"); while($flag = mysql_fetch_assoc($flag_lookup)){ print_r($flag); } What do you get?
  5. That doesn't answer the first question.
  6. Are you sure the data is correct in the database? And $username has the right value?
  7. No, the URL on the page that you are on. Look at your browser. What does THAT url say. The one that is running this code.
  8. Because mysql_fetch_assoc returns an array. print_r($flag) and you'll see what it contains.
  9. So... why is that? We're talking about the URL of the page you are on, not the links. Why do you think that URL doesn't have the AccountID?
  10. Where's the problem in the code?
  11. If it's a business expense, it's not even covered under his HOME owner's insurance. You need separate insurance for business property.
  12. You start the loops at 1 when assigning, then start at 0 when reading. So, clearly, nothing is set at the index of 0.
  13. Try re-reading the first post. And? I read it. It says he wants to strip anything other than alphanumeric and 5 special characters, which is what josh left in the string. Alphanumeric and those characters.
  14. Uhm, you know who could answer this? Your insurance company
  15. What do you mean should? Does it or doesn't it?
  16. And so what does your URL look like? If you add print_r($_GET); to the top of the program, what is echod?
  17. Wow, not quite what I meant. What do you WANT to do if your query succeeds? What is the URL query string?
  18. The first error is being cause by your query failing. Look at the examples on mysql_query, and you'll want to print the error and the SQL so you can debug what's wrong with your query. Edit: On preview, what pikachu said. I'm just going to leave this here for the link to the examples.
  19. My crystal ball says .... "People who want help with a problem post their code"
  20. You cannot have a do while block actually within a string. You are trying to concat a control structure to a string, rather than a string to a string. You can concat the contents of the block WITHIN it. $x = 1; $str = "test"; do{ $str .= $x; $x++; }while($x<10);
  21. Holy moly. 1. Right away you try to use $AccountID without defining it. If it's coming from the original URL, you need to use $AccountID = $_GET['AccountID']; 2. Next, read about sanitizing user input and SQL injection. 3. All this: "$_REQUEST["Pool01Name"]; $_REQUEST["Pool02Name"];" Stuff? You don't do anything with them the first time, those lines do nothing. Secondly, you should be using an array for this data. $_Pool01Name = $_REQUEST["Pool01Name"]; $_Pool02Name = $_REQUEST["Pool02Name"]; Should be an array. 4. Your update uses $ContactID, which is also never defined. 5. if ($query) { exit; } This is the opposite of what you want. You also aren't capturing any MySQL errors to help you. 6. Turn on error reporting!!
  22. Are you just trying to get the URL without the query string?
  23. ".} while ($row_AllWine = mysql_fetch_assoc($AllWine));." //this is the end of the repeat region. You can't do that. You got a syntax error, in the future you need to post your errors (after reading them)
×
×
  • 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.