-
Posts
15,227 -
Joined
-
Last visited
-
Days Won
427
Everything posted by requinix
-
-
Back to your original posted question, Still getting the impression that you posted a couple snippets of code. What's the complete source?
-
Editor is a bit buggy with multiple toolbar rows, but I think I got it.
-
Fixed. y'all are weird for posting code from a phone but whatever
-
Well, there has to be some code somewhere that is not working as expected, because once that "result" makes it to "dee" and getElementById, it no longer works. Stop posting descriptions of your code and post your actual code. 600+ posts now. You should know this. Upon discussion with myself, management has decided to address this by pointing out to the user that they should be using the Code <> button when posting code instead of the Quote " button. Again, 600+ posts.
-
Tried a PNG with transparency?
-
Please post the code you actually have that is currently working.
-
var dee = result; var chosen = document.getElementById(dee).checked; Assuming "result" is a proper variable, that code is correct. Therefore //other code that produces result = XYZ4; this isn't. What is this code?
-
405 means you used the wrong method, as in GET and POST, for what the page is supposed to use. You have to match exactly what the browser did.
-
Hopefully won't be necessary. Give it a shot. Watch the HTTP requests being made and the responses returned. Good news is that since it's Javascript a lot of things will probably be JSON instead of HTML you'll have to parse. Then repeat what you see with cURL.
-
Given that it's apparently Javascript now, you're going to have to use your browser to watch what happens when you perform the assorted actions you need to automate. Going to be pretty much impossible to tell you in more detail since it's all behind a login gate.
-
An alternative is to use a similar approach (of scanning the table for existing records) but at the time of the vote submission to prevent another vote from being added if there are already 10 from that user.
-
You entered "j" and it's listing records with user containing "j". So I don't see what's wrong with that. Are you talking about getting all those duplicates? It's because you're joining the login and dados_user tables together without telling MySQL how to join them together. You need a query that looks like SELECT login.user, dados_user.nome_proprio FROM login JOIN dados_user ON login.??? = dados_user.??? WHERE login.user LIKE '%$procura%' AND login.eliminado = 0
-
Can you write code that will take one file and perform the adjustments you want? What is that code?
-
You check if the value "is set". Being empty or being zero counts as "set". If you want to check that the value is >0 then try doing exactly that. It is very much possible. You're misunderstanding the recommendations to use loops and otherwise change how your form processing code works.
-
As gw1500se suggested, a loop may be helpful here, but if you only have the 5 fields then it's not a crime to use an if for each one. You have an if statement for item 5. Why not use a similar if statement for items 1-4?
-
How should importing classes be used when using traits?
requinix replied to NotionCommotion's topic in PHP Coding Help
As far as PHP is concerned, yeah. That's how they work. It's what they do. It wouldn't make sense to put them in other files. If use statements are supported for annotations (they are) and if the parser is smart enough to grab those from the trait's definition rather than the class using the trait (apparently it is) then that means use statements for annotations work the same way as regular use statements. There is no question about "approaches". Use statements do what they do for code and also annotations. You can make use of them or not, and putting them in other files where they won't do anything is pointless. What "application"?