Posts by djva • 394 points
27 posts
-
-1
votes3
answers299
viewsA: Search filtering error (PHP)
$ _REQUEST, by default, contains the contents of $_GET, $_POST and $_COOKIE. But it’s just a pattern, which depends on variables_order; and I don’t know if you want to work with cookies. If I had to…
-
0
votes1
answer40
viewsA: put a column in the table to mark as view
<?php $servername = "xxx.xxx.x.xx"; $username = "xxxxx"; $password = "xxxxxxxx"; $dbname = "xxxxxxx"; $conn = new mysqli($servername, $username, $password, $dbname);…
-
0
votes2
answers144
viewsA: Does not insert with empty date input
If the field is set to "not null" in mysql, you must always fill in this field. Change this field in your BD and the data type should be Varchar or switch to variable. Also change your field and put…
-
2
votes7
answers4789
viewsA: Force input with a dot instead of an html comma
It is not good practice to restrict the user. Let him put what he wants and make you this validation: <input input type="text" id="Preco" name="Preco" size="120" onchange="this.value =…
-
0
votes4
answers572
viewsA: Generate Excel report by filtering query in Mysql database
Change according to your needs.It seems to me the easiest way to do. <?php include_once('conetar.php'); $query = "[Introduz o select que desejar]"; $result = mysqli_query($conn, $query); $contar…
-
-1
votes2
answers516
viewsA: [Solved]Assign label value when selecting product in combobox
The Form <form name="Registo" action="conexao.php" method="POST"> <b>Produtos:</b> <br> <select name="select_Produtos" id="select_Produtos">…
-
1
votes1
answer322
viewsA: Delete Button and Edit Fields (PHP,SQL,HTML,CSS)
A sun, if I’ve figured out what you want, could be this one. I just put it in the mark. You will need to reference the JQUERY library. The example in php (if so, will just replicate the input text…
-
1
votes2
answers1203
viewsA: How to create a confirmation window on a PHP system?
I wonder if this is what he wants? <a href="../controller/controller.deslogar.php" onclick="return confirm(Quer deslogar?');" title="Deslogar"><img src="img/logout.png"…
-
4
votes2
answers5284
viewsA: How to do Inner Join in mysql?
Your database is not normalized. First, it would normalize the BD, thus creating the tables: Brand; Model; Coloured; Category; Automobile; After that, I would think about doing the queries, where…
-
1
votes1
answer97
viewsA: Error when trying to fetch HTML form Mysql BD information
Alter hey bit your code, however you should put the link to the BD on another page or use object orientation. EDIT: See if this works. I changed the connection <?php $conn = new…
-
1
votes2
answers1585
viewsA: Open windows explorer using PHP and/or JS
Can be done by Javascript and Activex. <script type="text/javascript"> function abrirPrograma() { var shell = new ActiveXObject("WScript.Shell"); var fileLeft =…
-
0
votes2
answers203
viewsA: How to use Plone at gate 80?
First, change your Apache port to 81 or 82 because if you install skype on your machine it will use the same port and then create conflicts. After that place your PLONE serivor at gate 80, as…
-
1
votes2
answers82
viewsA: Join a lot of selects into one
For the power to internalize, there is a simpler way to execute all these sql in a simpler way without using Pdo but will be at your discretion: $sql = ("SELECT * FROM tbl_tipo ORDER BY tipo ASC");…
-
1
votes1
answer34
viewsQ: Update dropdown when pop-up window closes
When filling a form I created shortcuts to add data to dropdowns list but when I close the window pop-up, refresh the entire page. I’m using the following code: window.onunload = refreshParent;…
-
1
votes1
answer66
viewsA: Error sending php form
or it’s exchange or it’s imap or pop3 your email box. What is the domain of the box you are using? what you need to configure is SMTP for sending email. in case it is Gmail, smtp is configured like…
-
1
votes2
answers1583
viewsA: How to close a. bat file with another . bat file
Add this to your bat file: @Echo Off title NomeDoFicheiro.bat In the other bat file you create enter this: start "" NomeDoFicheiro.bat ping -n 10 localhost >nul taskkill /f /im cmd.exe /fi…
-
0
votes3
answers833
viewsA: Balloons with tips for using the system (Tour)
A very simple example for your tooltip. Then just shape the css to your liking. a.tooltips { position: relative; display: inline; } a.tooltips span { position: absolute; width:140px; color: #FFFFFF;…
-
0
votes1
answer281
viewsQ: Store dynamic form data
The form is created through data obtained from the Mysql database. I would like to save all the data from it by clicking on the submit. Problem: I can only keep one line at a time, creating a boot…
-
1
votes1
answer116
viewsA: Vbscript build error when running bat file to send email
Solution: Set objMail = CreateObject("CDO.Message") Set objConf = CreateObject("CDO.Configuration") Set objFlds = objConf.Fields…
-
1
votes1
answer116
viewsQ: Vbscript build error when running bat file to send email
The error is described in the image. Can anyone tell me why? I have tried to save the file with encoded ANSI but still does not give. Set objMail = CreateObject("CDO.Message") Set objConf =…
-
0
votes1
answer1357
viewsQ: Creation table with dynamic filter
My intention is to create filters to appear all columns initially and to be able to choose the columns that appear through checkbox. Can someone help me do that? <div class= "form-group"…
-
1
votes2
answers54
viewsQ: Save table values in Excel
I’ve got all the code you need, but it’s a mistake and it has to do with $i. how can I correct? <?php include('conetar.php'); $query = "SELECT nome, contacto FROM utilizadores"; $executar_query =…
-
1
votes1
answer80
viewsQ: Enable/Disable input text with via loop
The intention is, to put all text inputs of the variable VesaoNova Disable whenever text input VersaoAntiga is empty. The problem is in jquery in the conditions,? <?php while($row =…
-
1
votes3
answers191
viewsQ: Enable/disable input text generated by a loop with data received from the database
The image is an example of what I want. When is checkado to checkbox of verificaçãoAntiga, makes the Text of Versao Nova active. He does it at first but not at others. Someone can help me? <?php…
-
2
votes4
answers6154
viewsA: How to get session cookie via javascript?
To create the cookie: document.cookie = "username=[utilizador]; expires=[dia que expira], [18 Dec 2013 12:00:00 UTC]"; To read the cookie: var x = document.cookie;…
-
3
votes2
answers4608
viewsA: SQL - How to select or delete a column with value equal to null in a query select
In case the campo3 = null and not want to show it: select * from myTable where campo1= 4 and campo2=1 where campo3 is not null In case you want to show only when the campo3<>null: select *…
-
1
votes4
answers160
views