Jump to content

niche

Members
  • Posts

    3,671
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by niche

  1. There's all kinds potential reasons for your code not to work. Please repost your code using the code tags so we can copy paste it, for a closer look. In the meantime, add this snippet to line two of your contact.php file: var_dump($_POST); That will tell you what you're actually getting from your form. So, let us also know what you're seeing. FYI, your problem may not be with you code. Your server may not be set up to send emails. Use this tutorial to check that out and let us know what happened: https://www.w3schools.com/php/func_mail_mail.asp
  2. niche

    Megamenu

    my bad. i will stop that. please accept my apology. as I recall, there was a there was a time, years ago, that posters occasionally referred to you that way. whether that's true or not, it sounds like you probably don't like it. i meant to imply that we've been posting to this forum for a very long time. i meant absolutely no disparagement. in fact, i have a great deal of respect for you, especially your willingness to provide code snippets. your friend, che
  3. niche

    Megamenu

    That's the problem suk was alluding to. You don't need to know how something actually works to be able to use it, until it misbehaves. Then you either have to replace or repair it. Telling a mechanic, that you don't know how to fix your car, just means he's going to charge you for the repair. He already knows you don't know. The cost to use a code forum is to know something about your code. Look at jimfog's forum questions. He always asked informed questions and he always gets prompt answers. As Mr Data says, admitting you don't know is the beginning of knowledge. Just the beginning. Besides that, I think you have a bigger problem in my opinion. That page will never fit on a smartphone.
  4. niche

    Megamenu

    Have you checked with one of the wordpress forums? https://wordpress.com/forums/
  5. My best suggestion is start posting the code you've written starting with your code concerning JOIN. SQL is not browser dependent.
  6. Use the MAX() function
  7. Know your customer. The reason it's a challenge is because no one has successfully solved that particular problem. When I need to reduce complexity, I design new paths as experiments designed to understand how people think. As long as some users (I prefer most users) are completely registered, we can can always follow-up with people that I fail. It's important for me to add, that all my work is contingent on getting a percent of what I help produce plus the cost to code. That really keeps everyone focused, but that needs to be said before the clock starts. Put simply, I believe businesses make their money by creating complexity. Not by simplifying. So be careful.
  8. Exactly. For example, I run a grocery site that tracks prices of 2000+ items in 20+ local stores. In my town, that's 441 different kinds of diapers! Have to cut that down somehow. I learned the hard way, that people REALLY HATE too many choices. So, I settled on 5+/-2 which is actually a thing called span of control. It's the reason why US phone numbers had 7 digits for such a long time. Anyway, auto complete is always tricky especially when it comes to tech speck which includes all medical speak. That's why I prefer sub category driven pre selected dropdowns when I'm trying to sell something.
  9. php or an ajax call for the auto complete. I'd do a preselect by sub cat, if poss, to knock that number down. 65 too big a number based on experience. Triggers people to walk away. I try to limit choice to 5 +/- 2 (span of control).
  10. My mistake. Yes, php is server side. Also, didn't notice your javascript keyword. It would help if we saw your html.
  11. I'd do that client side with PHP.
  12. That doesn't make sense. Everyone gets to look at everyone's html with the dev tools on every browser. They can even change it if they want. That's just SOP.
  13. Problem solved. EDIT: Code forums don't work that way. You could easily show us something similar if you could. Else, you might need to ask a different question. No harm. No foul.
  14. Why are you not using suk’s link from his 1st post as the model?
  15. That’s the deal you made with Wordpress, but probably didn’t realize it. Wordpress is a packaged deal unless you know how to code! Every coder has a story about lines of code taking months in the beginning. That’s not even a down payment. So, no aha. Never used fa-angle-down: before;. I know what’s it is, now, because I googled it and learned that w3schools even has a tuit on it. ‘Also, pretty sure that’s not duplicate code when viewed in context. Besides, how does fa-angle-down: before; connect to your width question? EDIT: What part of your last post is relevant? What’s the relevant part of your html? Get all of that on one screen, without having to scroll. Or, help us understand why that’s not possible.
  16. That goes to suk’s point. If you have to use your developer tools to isolate relevant code, the code in question probably isn’t yours. That’s an issue, but not the point that I and presumably suk need to make. Put simply, ask questions about your own code, or code that you’ve made your own by working to understand the properties and methods of the code you want to use. As I’ve heard suk say, “it’s magic!”. Unless, you do the tutorials. That how magic becomes code for everyone that’s willing to put in the time and effort to learn basics before the advanced.
  17. He's saying post code you have. Just the relevant parts, please. If you don't have any, say so. We'll refer you to the appropriate tuits. Sending us a link is not the same thing. Thoughtful, timely solutions deserve well constructed questions that demonstrate diligence on the part of the OP. EDIT: BTW, suk gave you an answer. Telling anyone their answer doesn't work is bound to be problematic.
  18. As in the width of the longest text in a group of buttons?
  19. https://www.w3schools.com/php/func_error_reporting.asp can you get that query to update one col based on current WHERE? EDIT: does $id echo correctly?
  20. Does that Id exist? if so, are you actually changing anything. rowCount() returns 0 if you don’t actually change anything. odd, nothing’s happening and no errors. is error reporting on?
  21. So, why not do the join? EDIT: I’d do your OR differently: WHERE this = that AND ln = OR this = that AND ln =
  22. Did it successfully SELECT?
  23. Where do you think it broke and what are the error messages, if any? EDIT: Where did you initiate the PDO object?
×
×
  • Create New...