Jump to content

requinix

Administrators
  • Posts

    15,289
  • Joined

  • Last visited

  • Days Won

    436

Everything posted by requinix

  1. You're asking if someone could create their own website under *.basemaps.cartocdn.com.
  2. The error is complaining that you're trying to treat a boolean value as if it were an array. There are two variables on that line. One of them is $_POST. I really hope you don't have code that somehow turns it into a boolean. The other variable is $answer...
  3. I'll skip the question about what's wrong and try again. Take Barand's code. It's good code that demonstrates the singleton pattern, and is based on what you started with. Then do the thing with $e you tried that added getMessage() to the error output. With those in place you will still get the error that you had before, but now it will include a message from $e that should point you towards what the underlying problem is.
  4. Could be. Or it could be that you added the new "getConnection" without removing the old one.
  5. Okay. What's the code you have now?
  6. The code (when unchanged) seems fine, but I'm no WordPress expert. You are using that, right? I didn't notice you changed "wp_mail_from_name" to be "WordPress" - that should not be there either. The "blogname" option should also be correct. In the WP options, there should be a title set. That would be provided for whatever "wp_mail_from_name" controls.
  7. Take the code Barand provided and apply the change you made using $e to it.
  8. Not the most helpful message, is it? You get that when a PDOException is thrown. It's available as the $e variable and very likely has some useful information inside of it...
  9. You've posted a few pieces of code without any context to how they are used. That makes it really difficult for anyone but you to know what you're talking about. If clickedD.php is where the AJAX request with the dentist's name is sending its data then only clickedD.php has the dentist's name available to use. The AJAX happens after the page loads, so PHP cannot time travel and take the information from it and retroactively change what happened when it was first creating the page. Without knowing more about what you're doing, I would say that you "have to" use clickedD.php and AJAX to modify the page with whatever information you want - information which would have to be returned by clickedD.php itself. But I suspect there's an easier method to do what you want. No way for me to know what it is, but I do believe there is one.
  10. 1. The second argument to add_filter() is the name of a function WP should call when it wants to use whatever filter. The name of your function is "new_mail_from_name" and not "alphaequipment". 2. get_option() will want the name of the option it should get. An option name would be like "blogname". You very likely do not have an option named "alphaequipment.com". Have you tried using that add_filter + function code without making any changes to it?
  11. I don't know what "day 0" is, but you can get a string representing today's date with, surprisingly enough, the date() function.
  12. You are putting $_POST values directly into the query. The first step to fixing your problem is to stop doing that and to use prepared statements instead.
  13. if(isset($fdate)){ $content['fdate'] =$fdate; }else{ $content['fdate'] = ''; } if(isset($tdate)){ $content['tdate'] =$tdate; }else{ $content['tdate'] =''; } That looks relevant. Have you tried changing those two empty strings to be something else?
  14. CSS classes is not some magical transformation thing where you put some mystical letters on your HTML and it mysteriously gains some supernatural attributes like "makes the text black". They aren't some special codes you enter into your keyboard to unlock secret powers on a webpage. A class is a name. A simple name. And only a simple name. w3-#000000 is not a simple name. It's got this placeholder at the end that says "okay, I put some thing in here, now insert that somewhere else". And that does not work. Take some time away from memorizing the w3.css stuff to learn about what CSS is and how it works. Because w3.css is CSS. Not some fancy alternative to a prettier internet, but a bunch of pre-fabricated concepts that some people far out on the fringes of the world wide web decided would be Good Thingsā„¢ that other people might want to copy.
  15. style="color: #009000"
  16. An unset upload_tmp_dir is completely okay. What are you trying to install? What error is it giving?
  17. You're doing a new container/row for each result from the query. Shouldn't you be using a single container/row and then a new card for each result?
  18. Why do you need to change the upload directory? upload_tmp_dir being "no value" only means that it wasn't configured in the php.ini and so PHP will use the system's default temporary directory for storing uploads.
  19. You're caring a lot about something that doesn't matter. If you want to avoid work, such as learning for yourself, then try not using quotes ever. Eventually you'll find a case where not using quotes was wrong. Then you'll know.
  20. Except for the occasional time when you "have" to use quotes, such as with font-family names that contain spaces (like "Comic Sans") or with url()s that contain unusual characters (especially parentheses), most people don't use them. Definitely not for numeric values, like 100% or 15px. That's weird.
  21. Nicer than storing generated PDFs on your server is generating them at the time they're needed. Because, at least in the case of invoices, the data supporting its contents shouldn't ever change.
  22. That's ridiculous. Fight it. By adding an event listener for the quantity textbox's "input" event (when someone changes the value), doing the math, and updating the table cell. There are other HTML markup changes I would recommend to assist with that, but we're not at that point yet.
  23. You've told us that it does not do what you want it to do but you haven't told us what it does do. What do you expect to see happen? What do you actually see happen? What have you tried so far to debug this?
  24. With vertical-align.
×
×
  • 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.