Posts by Wesley Gonçalves • 404 points
17 posts
-
2
votes1
answer41
viewsA: Why is my sql command not saving?
Have an extra comma in the SQL query between photo1 and photo2 $sql = "insert into quizfoto (nome,foto1,,foto2, //.. Try to do what @Woss suggested, see the error messages. If no message is being…
-
0
votes2
answers48
viewsA: Read Return SELECT Array
You are using the function mysqli_fetch_array which requires a class object as the first parameter mysql_result - as you can see in the documentation here. But you are passing $data containing an…
-
1
votes1
answer27
viewsA: Error including class in index file so I can’t instantiate it [PHP]
Your class System belongs to the namespace lib and therefore its "full name" (or Fully-Qualified name) is lib\System. Therefore, to invoke it, you need to reference it by its "full name". // ...…
phpanswered Wesley Gonçalves 404 -
1
votes1
answer89
viewsA: class call error
Use of namespaces Class attribute encapsulation Visibility in PHP Use of class ownership - see Magical Methods - Destructors Use of namespaces In NewConex: To use the class PDO (which is global PHP)…
-
1
votes3
answers425
viewsA: Replace Space by Comma
You are almost there. The arguments of the function str_replace that are in the wrong order. According to the PHP documentation you can consult here, you need to do the following: $resultado =…
-
1
votes1
answer27
viewsA: No PHP connection response
In connection with the BD, you are passing a "variable" $123, but variable names in PHP cannot start with numbers and in this case it is not even being declared. I think you wanted to write $senha.…
-
0
votes1
answer114
viewsA: trade html da li
From what I understand, the problem lies in changing the background image of a li during the the AJAX request process that is executed when a descending element <a> receive a click. For this,…
jqueryanswered Wesley Gonçalves 404 -
1
votes1
answer1081
viewsA: Get span information inside div
closest search for elements in hierarchical levels higher than the element in question - in this case .procuraAluno. Like the span is at the lower hierarchical level ("within" of .procuraAluno), you…
-
1
votes3
answers888
viewsA: How to make an image with link appear a text
Using transition of CSS, can be done as follows. You can see more about this property in page of the MDN button { padding: 8px 14px; background: #0084ff; background-image:…
-
0
votes1
answer150
viewsA: How to create a PHP and MYSQL search
From your send.php file, I assume you already know how to run darlings in PHP. If you don’t know, you can ask here or consult the class mysqli of PHP (which is a good way to connect to Mysql…
phpanswered Wesley Gonçalves 404 -
2
votes2
answers2335
viewsA: How can I make a button to load more using jquery?
@Tássiogonçalves, you can do with the following steps: Assigns the Event Handler click to the "Press More". Counts the number of existing items on the page. Request data from a PHP page that you…
-
2
votes4
answers283
viewsA: Toggle header colors based on menu Hover
I commented in JS code what each command does to help you understand and in CSS moved the instruction background-color to the header. Thus, any header (except the one that is setting color "above"…
-
1
votes1
answer484
viewsA: Update PHP variable with Jquery using AJAX request
I will try to be brief with the answer. I see some errors that are preventing the correct functioning: The page is being up-to-date when making the AJAX request. To avoid this in the function…
-
1
votes2
answers2686
viewsA: Modify attribute href via jQuery
To avoid typos it is good to use another way to choose which option to change. Could use a select, for example. Using a select you can do this with The function val to know what is the value in a…
jqueryanswered Wesley Gonçalves 404 -
1
votes1
answer278
viewsA: AJAX request with different domain
Try to add the item async: false, because according to the documentation, requests for jsonp remote servers do not work if the mode asynchronous is active. Cross-Domain requests and dataType:…
-
3
votes1
answer848
viewsA: Remove child element effect in CSS
You can remove the effect of divand put it in the image because so the effect does not include the span. I needed to make some modifications I mentioned below in CSS and jQuery to make it work. A…
-
3
votes1
answer170
viewsA: How to save all data inserted into a form-control in Mysql
The question does not include jQuery but using this framework sometimes makes the work easier, so one way you could do what you want is the following: Collect data from form : Look at this post…