Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. You posted way too much code, and didn't use the code tags, so it's annoying to try to edit it. As I said twice, before the foreach on the line which is causing problems, add another if statment to check the values of the array. It seems the array is empty.
  2. Your question doesn't make much sense. You say "you can get to them"...how? What is the context? And why do you need it to match exactly?
  3. I bet you have register_globals enabled and you're logged in as administrator. Turn that off and use $_GET and $_POST.
  4. Before the foreach on line 20, check that the array being sent has values. if(count($array) > 0){ //foreach }else{ //oops! }
  5. I don't think it is. Perhaps there is an easier way - like setting up a cron job or something? What are you trying to do?
  6. try using mysql299.secureserver.net instead of http://mysql299.secureserver.net Is this on godaddy?
  7. register_globals being off requires that in order to use a variable which is defined outside of a function, you must mark it global in the function.
  8. $str = str_replace(' ', ' ', $str); Not sure if htmlentities() or a similar function would be better, but that should work.
  9. Oh sorry. Just go to the file in your browser, so you can see. I have no experience with flash, but you should still be able to view the .php file and check the connections.
  10. after all the mysql_** functions, add or die(mysql_error()); $DBConn = mysql_connect($DBhost,$DBuser,$DBpass) or die(mysql_error()); mysql_select_db($DBName, $DBConn) or die(mysql_error()); etc. (keep doing it on the rest, query, etc) That will show you where it's breaking and why.
  11. If you mean you want the contents of the drop down to repopulate each time the user picks a program, you'll need to use Ajax.
  12. It sounds like what you were saying is the includes aren't working, or variables aren't passing through all of them. Are you using require() instead of include()? Try that first. Then make sure in any functions the variables are marked global.
  13. <input type="text" name="name" value="<?php print $_SESSION['username'];?>" /> <?php print '<input type="text" name="name" value="'.$_SESSION['username'].'" />'; ?>
  14. The first error was on line 2, The ; in place of ) It stopped at that error before reaching the one on 5.
  15. print "<table border="1">\n"; You have " inside your string which aren't escaped. print "<table border=\"1\">\n"; Or print '<table border="1">'."\n";
  16. What the heck are you saying? The number on the url? Are you smoking something?
  17. php.net Type in $_SERVER Click "here" to search entire site. First result: http://us3.php.net/manual/en/reserved.variables.php First one.
  18. This site has tutorials on MySQL and PHP. Look in the beginner's section.
  19. Via PHP? Not AFAIK. If you are on the PC, yes.
×
×
  • 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.