-
Posts
15,274 -
Joined
-
Last visited
-
Days Won
432
Everything posted by requinix
-
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"? -
error 'npm' is not recognized as an internal or external command
requinix replied to ali_254's topic in Frameworks
You haven't installed Node globally.- 1 reply
-
- 1
-
-
How should importing classes be used when using traits?
requinix replied to NotionCommotion's topic in PHP Coding Help
This is a "try it and find out" situation. If you've tried it and discovered that the use statements in the trait's file can be picked up by the annotation parser then there's your answer. -
Parse error: syntax error, unexpected token "endwhile" in php file
requinix replied to kazumii's topic in PHP Coding Help
while($rows=mysqli_fetch_array($result)); -
It would be easier to know what the right direction is if we had a more detailed description, or perhaps even examples, of what you wanted to do. If you want to send the email always and only include in it particular values then your code there isn't right because it constructs the entire email based on that field. You would need the contents of the email and then to insert some piece(s) depending on $item5. Yeah, I think some examples would be nice.