Jump to content

niche

Members
  • Posts

    3,671
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by niche

  1. It’s not clear to me whether your second example worked. It looks like it did. Did it? If not, what were you expecting?
  2. What Lana said isn’t always practical and there’s still the question why the alt gets displayed and the src doesn’t. Please post your code and verify the the src target exists with the EXACT spelling and capitalization. EDIT: Including EXACT spelling and capitalization for the entire path
  3. Sounds like you have duplication in in your query results. Add a GROUP BY to your query. If that works, figure out, figure out what's causing the dupes in the query.
  4. Didn’t know you already answered the question. I thought they altered the code based on the tuit.
  5. Then, like the doctor says, don’t do that any more. IMHO, the best way to learn code is to learn it while you do it. I tried to learn then do, but that never worked for me. So, I had to change the way I learned and just started creating things with code. Create a div. Give it some positioning. Then, put something in it. Get a localhost. They’re free at wampserver.com. That’ll let you make dynamic content. When you’re done doing that you can try to get JS to do the same thing you did with your localhost (or the other way around) Oh yeah, don’t be afraid to make lots of mistakes. That’s why there’re forums. There’s no substitute for doing. The bigger the mistake the more memorable the lesson!
  6. Please post the relevant part of your code. Else, we'd just be guessing.
  7. What do you have in mind?
  8. Here're some options: https://stackoverflow.com/questions/42031379/best-way-to-query-or-search-through-a-csv-from-html-website I'd recommend something with php. It's my preference.
  9. It's probably what your other mailing program is doing. I experience similar issues. I generally don't pursue these kinds of issues unless they're critical which they seldom are. Whereas the web processes code in mostly standard ways, what happens to an email after it hits a server, seems to be the wild west.
  10. When you dump $row at the top of your loop, can you see the problem?
  11. niche

    Help!!

    There're 2 ways I'm aware of: 1) Read all the tutorials. Then, start coding. This is how I started because that's the way I was taught: Learn then do. 2) Just start coding. Rough out your first page on a piece of scratch paper or in your head. Then, get it on the screen, as best you can. with your code. Method #1 will expose to all the tutorials, but there's simply too much to remember unless you use it all the time. If you were taught to learn the way i was taught to learn, method #2 makes no sense. Having wasted considerable time on method #1, I highly recommend method #2. Throw yourself into the deep end. No guts no glory. Plus, we'll bail you out as long as you show some effort and don't just expect us to give you the answer. GREAT QUESTION!
  12. There's obviously something more to your situation than you're unaware of. I'd check with Ocean. They probably have a forum. EDIT: You might try 0px instead of just zero.
  13. Then something going wrong in the if. EDIT: What's $_POST look like?
  14. I think this is the problem: $sql = "SHOW COLUMNS FROM $table2 WHERE Field NOT IN ('id')"; EDIT: This is the solution: $sql = "SHOW COLUMNS FROM ' . $table2 . ' WHERE Field NOT IN ('id')"; Remember, $sql is a string!
  15. This produced a list of my tables: try { $sql = ' SHOW TABLES '; $stmt0 = $db0->prepare($sql); } catch (PDOException $e) { echo $e->getMessage() . '<br>'; } try { $stmt0->execute(); } catch (PDOException $e) { echo $e->getMessage() . '<br>'; } $tables = $stmt0->fetchall(PDO::FETCH_ASSOC); var_dump($tables); Get $tables into your flow.
  16. I suppose you do it with $sqltable = "SHOW TABLES"; I've never used it, but a quick google says it should work. Then, all you need to do is get the results into your flow. Voila! EDIT: Let me know if you need help with that.
  17. That's the code. If it's not working, show the the least amount of html, that shows the actual available inputs, that go into the sql. EDIT: Or, the resulting $_POST array.
  18. If it works, it's correct. If it doesn't, please post the relevant actual HTML that's produced, emphasis on relevant.
  19. Which query query is blowing up? BTW, I use try/catch to do my PDO error reporting. That link was the quickest w3 link I could find as a error handling example.
  20. Where does it break exactly? What's the exact error message? Where's your error reporting? https://www.w3schools.com/php/func_mysqli_error.asp
×
×
  • Create New...