Posts by Marcondes • 360 points
14 posts
-
0
votes1
answer48
viewsA: Javascript Formatting of Dates
See if it helps. var datateste = new Date(218,06,27,0,0,0,0); //data, aqui tem que pegar a última data de uma semana cheia do mês atual. var primeiro = datateste.getDate() - datateste.getDay(); //…
-
0
votes1
answer226
viewsA: Phpmailer Error include
You got a mistake on that line: //Includes the Archives require ("Phpmailer/class.phpmailer.php");Phpmailer/ Remove this: Phpmailer/
-
2
votes1
answer4509
viewsA: Freeze row of an html table
Follow an example. /* Vamos definir o CSS */ /* primeiramente definindo o display block na sequinte estrutura de elementor: table tbody e para table thead. Veja que a tabela terá que ser definida…
-
0
votes1
answer1305
viewsA: configure wampserver for external access
You have to configure your router to do a port forwarding. The 8080 port of the Router IP, for example, you have to configure to the 8080 port of the computer (ID) internally where it is installed…
wampserveranswered Marcondes 360 -
4
votes2
answers2073
viewsA: Error creating Mysql Relations using Wampserver
Myisam tables do not support FOREIGN KEY. So you have to change the database type to Innodb? This you can select at the time of creating the database, and before creating the tables.…
-
0
votes4
answers192
viewsA: Summing up 3 inputs
Only converts to numbers. var valor1 = parseFloat($('input[name=data\\[valorc1\\]]')); var valor2 = parseFloat($('input[name=data\\[valorc2\\]]')); var valor3 =…
-
5
votes2
answers2757
viewsA: Search a key array and return value
You can take the keys of arrays with array_keys($array); With this you can take the return and find the key you want. Then take the amount. $array = array("azul", "vermelho", "verde"); $key =…
-
1
votes1
answer35
viewsA: how to know if a class is immutable by Javadoc?
You should look at whether the constructor is private, it is generally recommended to use it privately and create a public method of() that returns a new object. If she has setters, if she doesn’t…
-
2
votes2
answers689
viewsA: PHP Error " mysqli_query() expects at least 2 Parameters, 1 Given", when sending multiple input information
Using mysqli, would look like this. <?php // Criando a conexão $conn = new mysqli($server, $user, $password, $database); // Verificando a conexão if ($conn->connect_error) { die("Falhou a…
-
2
votes2
answers689
viewsA: PHP Error " mysqli_query() expects at least 2 Parameters, 1 Given", when sending multiple input information
If you are using PDO. The best thing to do is to prepare your SQL, even to ensure some SQL Injection project. $sql = 'INSERT INTO produtos VALUES (:cod,:valor)' $sth = $conn->prepare($sql); $stmt…
-
0
votes2
answers1923
viewsA: I can’t upload files to the project on github
How was your procedure? You first created the repository on Github and made the clone? Or created a directory on your machine and now wants to send to Github? On Github, you checked the option to…
-
0
votes2
answers703
viewsA: How to make a welcome screen in PHP?
You executed this: $query = $db-> query("SELECT user_id, username FROM user WHERE username='$user'"); echo 'bem vindo: $ não sei o que colocar aqui'; But it was missing to fetch the data to an…
-
3
votes3
answers948
viewsA: What makes a JOIN bad in a database?
You should check if the database has indexes. The issue of Fks is a problem, but for the consistency of the data. And thus avoid orphan records. It can be controlled via application, of course it…
-
0
votes2
answers2077
viewsA: Onkeyup event with Jquery
It would not be better to leave to use a mask plug-in? You can define a Pattern in the inputs. Example: $('.money').mask('000.000.000.000.000,00', {reverse: true});