Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Sometimes you need another eye. The problem is bound to be in your code, just post it.
  2. Is some.com your actual domain, btw? Does your index.php rely on global variables? IE, are you using $image = $_GET['image'] or just $image? Perhaps this server does not have register_globals on.
  3. But, how can I know without seeing the code? omg!
  4. It looks like your .htaccess is not redirecting properly.
  5. I think you need to change the character set - where you do it, I don't know :/
  6. make your link something like this: edit.php?id=4
  7. I do #1 but use mod_rewrite and extract the page URL using $url = $_SERVER['REQUEST_URI']; instead of $_GET. It looks nicer
  8. You never assign it to anything. It needs to be $miles = $this->Mileage($start, $end);
  9. Jessica

    Form

    Wrong forum - Try: http://www.phpfreaks.com/forums/index.php/board,8.0.html
  10. Well, the path is not the same anymore. On that page the sites folder exists in the same directory as index.php. In the admin folder there is no sites folder.
  11. It's saying that $_SESSION['level'] and the rest of those aren't set, like I said.
  12. What? Are you sure config is actually included? And that site_config is?
  13. Change these lines: $sql2="UPDATE user SET distance=+($_POST[distance]) WHERE username=$valid_user"; To: $sql2="UPDATE user SET distance=distance+$_POST['distance'] WHERE username=$valid_user";
  14. Change it to this: foreach($flds as $fld){ if (trim(stripslashes($_POST[$fld][$i])) != ''){ $qtmp[] = $fld . " = '" . mysql_escape_string(trim(stripslashes($_POST[$fld][$i]))) . "'"; } }
  15. You can try adding brackets with your conditional statements. Instead of if($x==1) $x=5; do: if($x==1){ $x=5; } Do that for your foreach too, so you know where each ends and stuff.
  16. It works but there is a problem? Excellent. We can help if you actually explain.
  17. Hm...I don't see it. Hope someone else can help.
  18. Well no..'m_id' is a string. $m_id is a variable which could be a number. So change 'm_id' to $m_id.
  19. Check out Google Analytics, it's a really cool tool for that sort of thing.
  20. I think the name needs to be like this name="multiselect_listbox[]" so it can be an array. This is in your form's HTML part.
×
×
  • 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.