Posts by Pedro Luzio • 1,209 points
61 posts
-
1
votes1
answer93
viewsQ: C# Floating Form
Good, I’m making a program where I need a floating form that accompanies the mouse cursor while it’s inside a button, so far I have this: private void portaSwitchUpLink_MouseEnter(object sender,…
-
-1
votes1
answer1329
viewsA: Comparison of PHP dates - dd/mm/yyyy
You have to add three more days to the current date to make that comparison: $data = $_SESSION['buscaReserva']['dataInicio']; $hoje = date("Y-m-d"); $data = strtotime($data); $hojeMaisTres =…
-
1
votes2
answers329
viewsA: BD ACCESS does not accept INSERT or UPDATE
Try it this way: cmd.Parameters.AddWithValue("@nome", textBox1.Text);
-
3
votes3
answers55067
viewsA: Script to go back to the previous updated page?
If it is automatically, after the form is submitted, metes on the page that form Object will open: <body onload='window.history.back();'>
-
1
votes5
answers580
viewsA: Doubt in SQL query "between" or "in"
Try something like that, it worked for me. WHERE (v.verba_ano BETWEEN $ano AND $ano_fnal) AND (v.verba_mes BETWEEN $mes AND $mes_fim)
-
-1
votes2
answers415
viewsA: HTML file download Excel
It is preferable to put the . xls so is read by all versions. <a href="RH/Exemplo.xls"><img src="images/excel.png" width="56" height="56" align="middle" ></a>…
-
-3
votes2
answers68
viewsA: PHP Query Error
The best would be to put: <?php include ("sistema/validar_session.php"); include("config.php"); $login = "Goncalo"; $sql= mysql_query("SELECT * FROM dados_usuarios WHERE Login = '$login'"); $row=…
phpanswered Pedro Luzio 1,209 -
3
votes3
answers9184
viewsA: How to put Alert in PHP?
It is thus, being two languages that work on different sides, this is the only direct way... //Comando SQL Upadte para Atualizar os dados $sql = "UPDATE clientes set…
phpanswered Pedro Luzio 1,209 -
0
votes1
answer168
viewsA: Hide Row Gridview C# / ASPX
Try something like that: if (IDUtilizador == Convert.ToInt32(Session["IDUtilizador"])) { btn_EditarApagar.Enabled = false ... } }…
-
-2
votes2
answers2082
viewsA: Generate random numbers from a predefined set
You can use the Rand() function and the Srand() function, the latter serves to power Random, so that each build does not show the same value. #include <stdio.h> #include <stdlib.h>…
-
1
votes1
answer283
viewsA: What are Network Mask, Gateway and how do they relate to the modem/router?
Network Mask, briefly are the amount of Ips that an equipment can take inside that network, that is, if the Mask is 255.255.255.0, you can have 255 assigned, and two are reserved to Broadcast and…
networksanswered Pedro Luzio 1,209