Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. That is also covered in the link I provided.
  2. Pretty sure I already answered that. Have you tried debugging your code? I don't see any.
  3. A remote Ajax call should not effect Flash.
  4. There is nothing in that code that should be effected by register_globals which by the way should *NEVER* be enabled.
  5. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=320768.0
  6. But you don't have any error handling in your script? Seriously, this could go on forever. you have queries that rely on other queries executing successfully, but you never check any of these queries execute successfully or return data. The general idea is.... if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { // $result contains data. } else { // no records found } } else { // query failed, handle the error. } Apply that logic to all your code and post back if your still having issues.
  7. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=320763.0
  8. unless you have register_globals enabled (which you shouldn't they where disabled by default some 8+ years ago for security reasons) your data will be in either the $_POST or $_GET arrays, depending on your forms method. This piece of code.... //username session $_SESSION['username']=='$username'; $username=$_SESSION['username']; echo "Welcome, " .$_SESSION['username']."!<p>"; Should then be.... //username session $_SESSION['username'] == $_POST['username']; echo "Welcome, " .$_SESSION['username']."!<p>";
  9. There is nothing wrong with that line. What are the few lines before?
  10. What is going on here? $_SESSION['username']=='$username'; $username=$_SESSION['username']; Besides the fact that variables are not interpolated when in single quotes, $username is also not defined anywhere.
  11. Ah, now I'm with you. var objJSON = { first: 'something', func:function(){ // this would point to ObjJSON }, obj:{ something:'foo', func2:function(){ // this would point to obj } } }
  12. Json cannot contain functions, only strings, numbers, arrays and more Json objects. What you have actually created is a Javascript object. I'm not sure what you mean by callpoints?
  13. Have you got error_reporting on as suggested by BlueSkyIS several posts ago?
  14. Sending a Location header via header() automatically sends a 302 redirect so adding a 200 OK is not only useless, but makes no sense. A 200 OK status will not redirect.
  15. It's a theme. The guy who created should be asking for a review not you.
  16. You are passing a second argument to header, you shouldn't be. header("Location: $urlNow");
  17. I thought you where in Perth dreamwest? My brother was told to evacuate yesterday. His in Caboolture. It's starting to get pretty nasty.
  18. What part exactly are you having trouble with? Opening the new window?
  19. trq

    PHP mail()

    Doesn't sound like a php mail() issue to me, sounds more like something misconfiguration on the mail server end.
  20. ignace just provided a simple example of the MVC pattern. Well, the controller part anyway.
  21. I would use a framework. It makes things allot easier. jQuery is my preferred, http://jquery.com/
  22. You need to make sure the user you are using to connect with has sufficient permissions to connect from the host you are using. It's all covered: http://dev.mysql.com/doc/refman/5.5/en/adding-users.html
×
×
  • 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.