Posts by WSS • 1,326 points
71 posts
-
6
votes7
answers15010
viewsA: Print "n" natural odd numbers
I was able to understand and apply with another logic without having to add n+n, in case it would look this way: n = int(input("Digite o valor de n: ")) i = 0 ímpar = 1 while i < n: print(ímpar)…
-
4
votes7
answers15010
viewsQ: Print "n" natural odd numbers
I’m solving an exercise that asks me to enter a value for example: 5 and print the first 5 natural odd numbers in the case: entree: Enter the value of n: 5 1 3 5 7 9 The code I wrote works but it…
-
3
votes1
answer1292
viewsQ: Why is a function calling itself?
def clinic(): print "Voce acabou de entrar na clinica!" print "Voce entra pela porta a esquerda (left) ou a direita (right)?" answer = raw_input("Digite left (esquerda) ou right (direita) e…
-
1
votes1
answer1343
viewsA: Error when connecting SQL server
I solved it as follows: check that the service is working SQL Server (SQLEXPRESS) - launch it. 2nd go to Start menu > Control System > Tools administrative > ODBC data sources 3rd add a new…
sql-serveranswered WSS 1,326 -
2
votes1
answer1343
viewsQ: Error when connecting SQL server
Hello, I downloaded SQL Server Express 2014 with tools from Microsoft site. I did the installation but when I will start the error Error description: TITLE: Connect to Server…
sql-serverasked WSS 1,326 -
0
votes2
answers439
viewsA: Write data to the database (Value Member and Display Member)
Just so I can close this question the friend @jbueno helped me with the mistake. The problem was in this part of the code.: solicitacaocliente guardar = new…
-
1
votes1
answer1171
viewsQ: Error: Access to Debug bin file
I’m watching some video lessons on Youtube about C# but there’s one in question that I can’t solve at first. The C# code I am using is exactly this below: using System; namespace IniciandoProjeto {…
-
1
votes1
answer433
viewsQ: Write data from a Datagridview
Hello I have this Datagridview below: I need to go through Datagrid, check which checkbox is marked and save the data (Quantity: Qty and Product Code: cod_product). I managed with Stack’s help to…
-
3
votes2
answers439
viewsQ: Write data to the database (Value Member and Display Member)
I am having trouble writing this data into the database (Postgresql). In case the data you would like to save is: Customer Name Origin, Customer Name Destination, Order Date, Payment Date, Confirm…
-
4
votes3
answers3895
viewsQ: Double click on a Datagridview line transports the data to a form
Good morning to all. Next staff, I have a (query) form that contains the Datagrideview. And the registration form in another form. I would like to understand, how can I double click on a line of…
-
1
votes4
answers3646
viewsQ: Capture selected value in grid checkbox
Hello, I have the form above where it shows all the products I have registered in my database and presents in a Gride. I put inside this Gride the option to select (checkbox). I would like you to…
-
8
votes3
answers13322
viewsA: How to rotate image on Ivs
I resolved so: .vertical-img { transform: rotate(90deg); transform-origin: left top 0; }
-
0
votes3
answers13322
viewsQ: How to rotate image on Ivs
I have a page with 3 Ivs. One of them always receives image, I would like all images to be in this position: How do I do this in CSS?…
-
2
votes2
answers4412
viewsA: INSERT in two different tables - Mysql
I probably didn’t make it so clear, but I solved it this way: I receive data from a form: $nome = $_POST['nome']; $idade = $_POST['idade']; $email = $_POST['email']; $senha = $_POST['senha']; $sql1…
-
4
votes2
answers4412
viewsQ: INSERT in two different tables - Mysql
I have two tables in Mysql: Alunos: id, nome, idade, email, senha. login: id, email, senha. When I do Insert to record the information in the table alunos I can do another insert to save the email…
-
3
votes2
answers6278
viewsQ: How to make a form that accepts photo upload and save to database
I created a database called Form and table with the following information contatos (id int A.I, nome varchar(30), idade int(2), foto(blob) I made that standard form: <!DOCTYPE html>…
-
2
votes2
answers658
viewsQ: Problem writing data to Postgres
I have two tables in postgres (PRODUCT and CATEGORY) In the PRODUCT table I have the FIELDS -> ID, product name, description, value, Id_categoria. In the CATEGORY table I have the FIELDS ->…
-
7
votes1
answer153
views -
1
votes2
answers274
viewsQ: Use ID generated from one FORM in another and UPDATE in bd
I recorded this image in the database generated me the ID:20. Form to save : INICIAL.PHP (Code to save image) <html> <head> <title></title> </head> <body>…
-
3
votes1
answer1161
viewsQ: Grab the ID of the last row inserted in the database
I am doing a project that is in the following form: First the person will upload her photo in the comic (Table: registered, field: photo) However this table has other fields, for this I created a…
-
2
votes2
answers2838
viewsQ: Write data to two tables from a PHP form
Connection with the comic $host = "localhost"; $user = "root"; $pass = ""; $conexao = mysqli_connect($host, $user, $pass) or die (mysql_error()); mysqli_select_db($conexao, "teste2"); HTML…