Posts by X4vier • 178 points
12 posts
-
0
votes1
answer85
viewsA: Display 2 data in visualg with repeat structure
I don’t know much about Visualg, but let’s go with logic: For you to read and store various values it is necessary that you have variables to dedicate memory space to this. Instead of creating…
-
4
votes1
answer197
viewsA: How to take a specific value of an object?
As you are receiving an object, you should access it in a similar way to an array. What changes is that instead of $variavel['id'], you use $variavel->id; In your case, you get the result like…
-
0
votes1
answer112
viewsA: Transfer system ( options)
You must do a function to perform the transfer that will have as parameters: the target account and the value, this function will call the two other functions you have already done after all, if we…
-
0
votes2
answers40
viewsA: Need help with html videos
You can enter a div with float: left for each video, although there are several other ways to do this for example with display: flex (which is used by bootstrap). <section id="projetos">…
-
0
votes1
answer271
viewsA: concatenate a variable to call a php image
RESOLUTION Variable $theme is being overwritten in the first block of code. Break the strings to insert the variables. Your code is like this: echo "<section>" . "<span>Tema…
-
1
votes2
answers43
viewsA: Error with Abstract method
Because it is an abstract method it should not have implementation, ie the method is only declared but does nothing so that the class that inherit it it is required to implement. To resolve remove…
-
2
votes1
answer26
viewsA: SELECT in MYSQL resulting in only one record
The mysqli_fetch_array will return you only the array. If you want to show the others you should put in a while. while($tx = mysqli_fetch_array($q_tx, MYSQLI_ASSOC)){ echo "<pre>";…
-
0
votes1
answer71
viewsA: Send attachment by php form
Let’s start with HTML: In his form you must enter the attribute enctype='multipart/form-data' to send the file to your PHP server and the input type file. So your form that only sends a file will…
-
0
votes3
answers749
viewsA: Javascript variables in HTML
You can use jQuery as it was published here or do this with just Javascript with innerHTML. <div id="campo1"> a </div> <script> variavel = 5;…
-
0
votes2
answers82
viewsA: Select inside the Where leaving the query too slow?
Your WHERE is strange, see that it compares a COUNT(*) number with another number (?) and may be the reason why it slows down the query.. I believe he should be making a comparison with the value of…
-
2
votes1
answer42
viewsA: When and where to instantiate a class?
You should instantiate an object only when using, for example: A Car class where you need to store the card and use some method of it. Class loading But in your example you gave the idea of…
-
1
votes2
answers43
viewsA: Insert button value into database
From what I understand, you can put in a <form> and those buttons are a input of the kind Submit. It would look something like this: <form method="POST"> <div class="form-group">…