-
Posts
15,229 -
Joined
-
Last visited
-
Days Won
427
Everything posted by requinix
-
How should importing classes be used when using traits?
requinix replied to NotionCommotion's topic in PHP Coding Help
Are you saying that in one situation, having the imports in the trait file and not the class file works, but in another situation the same arrangement does not work? -
roman numerals to decimal conversion question
requinix replied to jodunno's topic in PHP Coding Help
In general, if you have problems with code not doing what you want, posting said code is probably a good first step. There are multiple ways of enforcing the digit rules so knowing what your current code is will help identify what approach will work best. -
-
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.