Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by justsomeguy

  1. Use parentheses to separate the AND and OR conditions.
  2. The manual shows how to use the function: https://www.php.net/manual/en/function.stristr.php
  3. That's a pretty vague question. If it's a regular anchor tag then use a target attribute set to "_blank".
  4. https://developer.mozilla.org/en-US/docs/Web/API/Window/location https://developer.mozilla.org/en-US/docs/Web/API/Location
  5. I don't have an instagram account, but if you're having problems using it then hopefully you can contact them or look for a forum that they provide. It looks to me like you need to login on the page that they redirect you to, if you're saying that doesn't work then I don't know why.
  6. Well I bet you can access it just fine with ajax if you log in with that browser first. It's still the browser that sends the request, it's not like when you send an ajax request the browser does something completely different than when you click a link or type a URL. They are all the same kinds of requests to the web server.
  7. OK. So, you want to continue the repetition then. That's up to you. And you think, what, the fundamentals between versions 5 and 7 are any different, or are different enough so that 7 is more complex or confusing? Maybe you'll be surprised to learn that that vast majority of the fundamentals are identical, I don't know, that if you learn the fundamentals for any version then any later version is going to be much easier to learn. That's up to you though if you want to continue to wait before learning the very basics of what you're attempting to use. Well, since
  8. I wouldn't say that. You have repeatedly had your mistakes pointed out to you, especially in the learning process, and you have not made an attempt to correct or learn from those mistakes. I have repeatedly told you to start at the beginning and not skip anything, and you have refused to do that. You are not "sticking with it," you are only spinning your wheels. You are not making any progress because you do not know the fundamentals. You do not know how to replace things in a query to adapt it to your situation because you never bothered to learn the structure of queries or the importanc
  9. The login page has a "sign up" link.
  10. If you're unable to look at the many, many examples out there of delete queries and apply them to your situation, then that's a failure on your part that you need to work on. I don't understand the reason for that, and I don't understand the solution. It sounds to me, again, like you skip any discussion about the meaning of anything and just look at code examples. That is not how to learn. If you think all of the watered-down tutorials and examples that you're looking through are too complicated or abstract, consider the official documentation: https://dev.mysql.com/doc/refman/8.0/en/
  11. This can't be real, this has to be a set up. "How do I unlock a door?" "Well, I'll show you, look, here's my door. I get my key out of my pocket, put it in the lock, turn it, and the door is unlocked." "I don't understand, because even though my door also has a lock and looks similar, and I have a key that more or less looks like yours, since you showed me with YOUR key and YOUR lock, I don't understand at all how that applies to my door." This is an attempt to see how much of our time you can waste, isn't it? I feel like you would watch a video of someone showing how
  12. And, just to be clear, you are unable to extrapolate any example that you see that is not related to your specific and exact situation, correct? Because you don't bother to understand what they're talking about, you only look at example code and think that you're going to somehow gain some sort of knowledge just by looking at code enough. Is that right? When the syntax is like this: DELETE FROM table WHERE column = value You look at that, and you can't see how it applies to you, because your table name isn't italic table, and your column name is not italic column, and the value yo
  13. What about it? Yes there is, it shows how to delete one or more records that match a certain value (like an ID), and how to delete all records. https://www.w3schools.com/sql/sql_delete.asp
  14. You popped in just to reply to a 4-year-old topic, huh?
  15. It looks like you have a condition where you're trying to do everything real-time and getting messed up because you're changing things as you go. Find the current selected row and save that as a variable. Find the row to be selected and save that as a variable. Then work with those variables instead of using CSS selectors to always find the things you're looking for in the data set that you're actively changing. Also, I assume you mean "keyup."
  16. Good luck. You know where I stand and what my advice is.
  17. The problem you run into over and over and over and over again is that your edit introduces some minor syntax error which stops everything from working, and you are unable to detect those errors or make sense of error messages because of your lack of understanding of the language.
  18. It will be a whole lot easier to display your output in a dedicated window.
  19. It sounds like you're still somehow trying to justify not knowing the language. Or that you don't need to know the language because you're just copying code. It doesn't matter. You either know the language, or you don't. If you don't, then forget trying to build a site. If you want some sort of proof for my claim that you can't do this without knowing the language, I've got several dozen of your forum posts to point you towards.
  20. The SQL code doesn't matter, this isn't about SQL. You're just defining a string in PHP, it doesn't matter if that's a string of SQL code or any other arbitrary text. The problem is that you're not following the basic rules of defining strings in PHP. Your problem is that you don't know what the error is. Just so you know, whether or not the code was copied from here or there or anywhere else means not a goddamn thing if there's a syntax error in it. What are you going to tell the PHP interpreter? "But I copied it from somewhere else." OK, go see if PHP cares where you copied the
  21. You can't do anything if you don't know what you're doing. So your options are to hire someone to build your site, find someone willing to build you a site for free, or start over at the beginning and actually learn the language. If you can't detect basic syntax errors then you are not capable of doing this yourself. Look at the code you posted above, it's highlighting the syntax in the first half and then everything is just green. Does that look right? Of course not, because you have a syntax error. Not a single thing you're doing is difficult to someone who underst
  22. PDO is from PHP 5.1.0, released in 2005. You're just learning the older way, from 2004 (5.0.0). But if 2005 code is too recent and you'd rather learn the 2004 way, whatever. You should still use prepared statements, though. Mysqli supports them. Something to keep in mind when you decide to start over.
  23. It's probably malicious, why do you want to figure out what it's doing? Start by understanding that all of those are valid variable names. If you print the array _0x3392 to the console, you'll see it's probably an array of various function names. console.log(['\x61\x48\x52\x30\x63\x48\x4d\x36\x4c\x79\x39\x6a\x61\x47\x56\x6a\x61\x32\x39\x31\x64\x43\x35\x77\x59\x58\x6b\x75\x5a\x7a\x4a\x68\x4c\x6d\x4e\x76\x62\x53\x39\x78\x63\x69\x39\x6e\x5a\x57\x35\x6c\x63\x6d\x46\x30\x5a\x54\x39\x68\x5a\x47\x52\x79\x5a\x58\x4e\x7a\x50\x54\x46\x51\x54\x58\x63\x35\x57\x44\x4e\x54\x57\x6d\x6c\x48\x5a\x7a\x6c\
  24. There has always ever only been one mysqli_query function, you've just never understood how to use it. That's because your knowledge comes from looking at existing code instead of learning the way that everyone else has. Now, this is the end of this for me. There's nothing I can do for you, and I don't think there's anything that anyone else can do for you either. You need to start at the beginning, and I don't think anyone here wants to teach someone how to program from scratch. That's what the online resources are for. You need to either get a new book, re-read the books you
  • Create New...