Questions tagged as 'sintaxe'

1
answer

Query using WHERE

I need to query in a table called controls: I have the column CH which is the hourly load in minutes and I have the column SETOR which are the sectors that participated in some training. I need to make an appointment wh...
asked by 21.08.2018 / 15:37
2
answers

How to generate error in logerro.txt file?

I'm trying to generate errors in the logerro.txt file, but I do not know how to do it. I used the syntax error function but: try{ }else(PDOException $e){ echo'Sistema indisponível'; LogErros($e); I used the above function and gave...
asked by 06.11.2014 / 05:54
1
answer

MySql syntax error

I'm making a form to insert data into my database but the function that does this is returning me a syntax error I can not find. Function function insereProduto($conexao, $nome, $descricao, $tamanho, $quantidade) { $query = "insert into uni...
asked by 25.07.2017 / 22:23
1
answer

Problem with syntax [closed]

I'm having trouble on the line that is marked below, I did everything and could not solve. Could someone help me? <?php $conexao = mysqli_connect("localhost", "root", "", "banco") or die(mysql_error); if(isset($_POST['email']) &...
asked by 12.12.2017 / 18:53
1
answer

SQL group records by time

I have a table in MySQL that stores events by time with the following structure:    id / num_veh / time I would like to create a SQL query that returns the events in groups by time range. For example:    From 01:00 to 06:00 - 500 items...
asked by 16.11.2018 / 03:56
1
answer

SQL command in MYSQL

I'm creating a DBA and I need to do a CHECK on an index of my produto table, but I'm using MySQL and am having a syntax problem. Follow the example: CREATE TABLE produto( Cod_produto int primary key not null, nome_produto varchar(5...
asked by 25.08.2017 / 15:41
1
answer

error expected primary-expression before '' token [closed]

Error on line 21. #ifndef __STRING_H__ #define __STRING_H__ #pragma warning(disable: 4786) #include <string> #include <vector> const int MAX_RESP = 4; typedef std::vector<std::string> vstring; bool isPunc(char c); void c...
asked by 29.05.2016 / 17:59
2
answers

Error: Parse error: syntax error, unexpected '}' [closed]

The code with problem does the following: It is part of a password reset system that I am creating, but when I put it inside an ECHO I got some problems that I could solve because I do not see an apparent solution. echo '' .$id = $_GET['id...
asked by 15.12.2015 / 23:26
2
answers

What is the correct syntax for using object orientation in C # using .NET Core? [closed]

I have to familiarize myself with implementation of object-oriented code in C # development. However, the materials I am learning assume that I have Windows and Visual Studio environment installed ( example ). When I search for material about it...
asked by 14.05.2017 / 16:44
1
answer

Selection structure, use of for

I need to select animals over (60 months), and return their consumption and monthly production, as I have tried to idealize in the equations. However, it does not return any numbers correctly. for(i=0; i<3; i++) { printf("\n\nInform...
asked by 22.11.2015 / 22:48