Posts by deoliveiralucas • 156 points
8 posts
-
1
votes1
answer84
viewsA: MYSQLI error with _GET attribute - Fatal error: Call to a Member Function error() on a non-object in
You have an error in your SQL syntax; you cannot use the method bind_param to link the table name, hence the method prepare must be returning false and not the object statement, then try to directly…
-
1
votes2
answers581
viewsA: Changing the contents of a <optgroup> label when selecting an option in another select
Try with jQuery. Add a class to optgroup and try to change the label in the selection field change event. html <optgroup class="grupoRecheio" label="Recheios Especiais: R$10"> js…
-
2
votes2
answers34
viewsA: Inverval set when $on is set
Try removing parentheses from the function updateApanha, so it will only be assigned to the event timer and unenforced. $rootScope.$on("timer", updateApanha);…
angularjsanswered deoliveiralucas 156 -
2
votes3
answers52
viewsA: Problem with select in PHP
PHP is stating that the index album_name does not exist, give a var_dump($db->data[0]) and see if there are any fields with the name album_name. If you’re on an album chart, just try a JOIN:…
phpanswered deoliveiralucas 156 -
0
votes3
answers1198
viewsA: Block event click element
Have you tried to return false in the callback function of the click event? like this: jQuery('input[name=EMAIL]').click(function () { return false; });
-
1
votes2
answers494
viewsA: move_uploaded_file does not work properly
Have you tried using the tmp_name? thus: if (move_uploaded_file($foto['tmp_name'], $caminho_imagem . $foto['name'])) {
-
0
votes2
answers311
viewsA: Extended PDO connection does not work
Try to leave the connection class this way; the constructor method does not return value, it is appropriate to initialize the object: class Conexao extends PDO { private $host = "localhost"; private…
-
1
votes2
answers1032
viewsA: Remove tag (strip_tags()) html along with content - PHP
<?php function strip_tags_content($text, $tags = '', $invert = FALSE) { preg_match_all('/<(.+?)[\s]*\/?[\s]*>/si', trim($tags), $tags); $tags = array_unique($tags[1]); if(is_array($tags)…
phpanswered deoliveiralucas 156