Jump to content

HuggieBear

Members
  • Posts

    1,899
  • Joined

  • Last visited

Everything posted by HuggieBear

  1. Ober, can you check the file isn't open by using MMC? Regards Huggie
  2. OK, I have access to my Windows box now. I've just tested your code on a directory with spaces and it works fine. Your error indicates a permissions problem. Check the permissions first, if that doesn't work, use MMC to check that the file handle isn't still open. Regards Huggie
  3. Ober, Do you need to escape your backslashes in the str_replace() if they're in single quotes? Personally, I'd replace them with forward slashes. Are you getting any errors output? This should be simple to fix, but I don't have my windows server running at the moment to test. Regards Huggie
  4. I've used MagicPasrer before and it's excellent, with great support. Regards Huggie
  5. Are you saying you want users to be able to create sub-domains from a form on the site, or just that they should be re-directed to already existing sub-domains?
  6. It means that all the errors should show up in the browser. This should make debugging easier.
  7. Give an example of what they'd type in the form field and what URL they'd be directed to.
  8. You don't need the curly brackets either. if($_POST['password'] != $_POST['confirmnewpassword']){ echo ("The two passwords must match."); } Rich
  9. BTW. The above code will never be invoked as your initial query only returns rows where Key1 = 'YES'. Edit: In fact, $row['Key1'] is never even set as it's not in the columns requested.
  10. Both of those should work fine. There's no reason why you shouldn't be able to set a background colour or use named anchors. Are you sure it's not your mail client causing a problem?
  11. My bad. Thanks Thorpe.
  12. What are you trying to achive. I'm getting the result I'd expect from the code you posted.
  13. <?php // $_GET is an array that contains everything passed in via the querystring print_r($_GET); /* The above code is here for debugging purposes So you can see what you're being passed in each time. Once you're confident, remove it. */ // Logic goes here. I have an if inside the foreach, you can have a case if you prefer. foreach ($_GET as $key => $value){ if ($key = 'username'){ // username code } elseif ($key = 'email'){ // email code } } ?>
  14. Sorry, I assumed that ArticleID was an integer.
  15. Why are you using session_start() in both the header and the body? Just put it in the header and be done with it. Make sure it's the first thing you do on that page before outputting anything else.
  16. <?php if (!isset($_SESSION['logged'])){ echo "You aren't logged in"; } else { echo "You're allowed to see the page"; } ?>
  17. Yes, that's correct. You can use either $_GET['var_name'] to get a single value, or use $_SERVER['QUERY_STRING'] and parse it yourself.
  18. Change the HTML input name from ArticleID to ArticleID[] then PHP will see this as an array. Then put this on the processing page <?php foreach ($_POST['ArticleID'] as $id){ $query="DELETE FROM tblName WHERE ArticleID = $id"; mysql_query($query); } ?>
  19. Change your query to this: $sql = "SELECT * FROM invoices WHERE id = " . $_SESSION['id'] . " ORDER BY id ASC"; $result = mysql_query($sql); if (!$result){ echo "Unable to execute query: $sql" . mysql_error(); } Where $_SESSION['client_id'] is whatever you saved the session variable as. Edit: Too slow
  20. OK, I think we're getting somewhere. How do you access files on the data server. Does the webserver have access to the data server on the network. Is the data server an FTP server/web server?
  21. Is this an availablity script, like calendar or booking system?
  22. The server can't see anything on the client regardless of the OS. Are you saying that from php (server) you want to be able to see the contents of a users c:\temp directory (client) for example? If so then it can't be done with PHP.
  23. What's the data in timeslot look like? And what are you trying to query on?
  24. Well done, I didn't make it back in time to reply. Can you post your fixed version so other's can see what you did.
  25. AND is more restrictive than OR as it requires more conditions to be met. OR will give you the larger recordset based on the same condition.
×
×
  • 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.