Posts by Hebert Lima • 987 points
90 posts
-
1
votes1
answer28
viewsQ: Method is not recognized within the class
I’m creating some classes in php and I have the following question: for methods get and set in php, I rode as follows: class User { private $username = ''; private $password = ''; public function…
phpasked Hebert Lima 987 -
1
votes1
answer117
viewsQ: Only call the function if you click on Parent and not on Childrens
I have the Following div: <div class="sub-menu"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a…
jqueryasked Hebert Lima 987 -
0
votes2
answers294
viewsA: Rule for redirecting with parameters
after studying a few weeks regular expressions, I managed to: RewriteEngine On RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^projeto/(.*)$ projeto.php?$1 and the href I pass like this: <a…
-
1
votes3
answers973
viewsA: Subcategories within their respective Category in the menu
ok... anyway: first create this function //ler tabela function DBRead($table, $param = null, $fields = "*"){ $param = ($param) ? " where {$param}": null; $query = "SELECT {$fields} FROM…
-
0
votes2
answers294
viewsQ: Rule for redirecting with parameters
I’m trying to build a friendly URL system but I’m having the following problem: I have a page that has a list of several items. The page has this URL: http://localhost/personal/portifolio When the…
-
3
votes1
answer44
viewsQ: Set CSS style for already filled fields
I have the following javascript function: $('input').blur(function() { var $this = $(this); if ($this.val()) $this.addClass('used'); else $this.removeClass('used'); }); she adds the class used to…
-
1
votes1
answer423
viewsA: Set Attribute from JSP radiobutton
I got... //html dentro do mesmo <form id="frm"></form> <input id="radiopf" type="radio" name="Type" checked value="pessoaPF"> <input id="radiopf" type="radio" name="Type"…
-
1
votes1
answer423
viewsQ: Set Attribute from JSP radiobutton
I am putting together a generic form for registration of legal and natural persons and the definition part of two RadioButton's that change the fields, after completed they are sent to a Servletand…
-
0
votes3
answers1435
viewsA: How to convert an Object into an Array? (c#)
I decided, instead of creating a Array() as I was thinking I listed using a Dictionary<string, string>. as follows: //Cria uma bindingflag que armazena as propriedades da classe. BindingFlags…
c#answered Hebert Lima 987 -
4
votes3
answers1435
viewsQ: How to convert an Object into an Array? (c#)
I have the following class: public string Nome; public int Cpf; public string getNome() { return Nome; } public void setNome(string nome) { this.Nome = nome; } public int getCpf() { return Cpf; }…
c#asked Hebert Lima 987 -
4
votes2
answers1229
viewsQ: Improve code performance in C#
I’m doing some tests with some C# codes and during an analysis I realized that some high-peak problems happen when integer value conversions occur to string, in the vast majority the conversion…
-
3
votes1
answer60
viewsQ: Repeat loop with pair and sequential output
How can I generate this list in sequential pairs: Array = Itens.text.Split(","[0]); int qnt = Array .Length; for (int i = 0; i < qnt; i++) { TextBox.Text = Array[i].text; i++; TextBox.Text =…
c#asked Hebert Lima 987 -
2
votes2
answers94
viewsA: How to adapt code to mysql_
you can create functions: config <?php define('DB_HOSTNAME','localhost'); define('DB_USERNAME','root'); define('DB_PASSWORD', null); define('DB_DATABASE','NomeDaBaseDeDados');…
-
3
votes1
answer427
viewsQ: PHP + Mysqli functions
I created a function in php to the cruid in the database however function Read is in trouble and I can’t understand why, follow the code: function DBRead($table, $params = null, $fields = "*"){…
-
0
votes2
answers13878
viewsQ: PHP error: "Fatal error: Call to a Member Function prepare()"
When I try to execute the SELECT server accuses this msg: Fatal error: Call to a member function prepare() on a non-object in blog.php on line 97 the line referred to is: $readPost =…
-
1
votes1
answer3923
viewsQ: PHP Posting System (Blog)
I’m developing the following website I have knowledge in web designers but nothing in php, and need to create a posting system for the site, I’m doing tests here on my server and I’m having progress…
phpasked Hebert Lima 987 -
1
votes2
answers513
viewsA: MYSQL - Column order and performance
performance interference does not occur in the ordering of tables, because if you have in mind something large voluminous as bigdata generally distributed in nodes(clusters) that maximize…
-
1
votes2
answers399
viewsA: Sort field or expired date notifications, database
at first just sort the dates you can use order by. Ex: SELECT * FROM usuarios ORDER BY dataemprestimo ASC descfor decreasing and asc to ascend, how much to catch the expiry date, in the function…
-
0
votes1
answer363
viewsQ: Search php on external site!
I am starting a project of a site whose need to perform keyword searches and get the results, the site will look like the youtube, would like to know if it is possible from a textboxin my form I…
phpasked Hebert Lima 987 -
1
votes1
answer144
viewsA: Generate List from Binaryformatter Deserialized Unity3d
After breaking my head, I couldn’t solve it in the form I needed, but the solution would be this: using System; using System.Collections.Generic; using System.IO; using…
-
0
votes3
answers412
viewsA: Filter records via datetime and bring them between an initial and final date
in the clause where you put WHERE column_data_name BETWEEN data_value1 AND data_value2; example SELECT * FROM table_name WHERE column_data BETWEEN '01/01/2010' AND '30/01/2010';…
-
3
votes1
answer263
viewsQ: Preparedstatement select with like 'something%' in Java Swing
how to perform the survey LIKE 'c%' with PreparedStatement? I have the following code: PreparedStatement pstm; ResultSet rs; public void pesquisarAdministrador(){ String sql = "SELECT…
javaasked Hebert Lima 987 -
3
votes2
answers1767
viewsQ: SELECT with keyword search
How to make a SELECT with specific fields and using LIKE %% in the same instruction? something similar to: SELECT TABLE_A.COLUMN1, TABLE_A.COLUMN2 FROM TABLE_A WHERE COLUMN2 LIKE 'A%' I’ve tried it…
mysqlasked Hebert Lima 987 -
1
votes2
answers8912
viewsA: Add days to Javascript Date() in dd/mm/yyyy format
$(document).ready(function () { $("#button").click(function() { var dias = 2; var dataAtual = new Date(); var previsao = new Date(); previsao.setDate(dataAtual.getDate() + dias); n =…
javascriptanswered Hebert Lima 987 -
2
votes2
answers2695
viewsA: Perform backup automatico Mysql
"Mysql Workbench is a query client and tool for modeling and very good at it - the goal is not to perform server tasks - which is server work. You can run manual backups using Workbench, but I’m…
-
1
votes1
answer956
viewsA: Adjust display of a monitor resolution-independent application
You can catch the screen size with the method Toolkit.getScreenSize(). Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); double width = screenSize.getWidth(); double height =…
-
1
votes1
answer144
viewsQ: Generate List from Binaryformatter Deserialized Unity3d
Hello I am creating a "save" system for games and would like to know how I can generate a list from an object BinaryFormatter? this file is formed from 3 information, and would like to generate a…
-
0
votes2
answers2579
viewsA: Get last record of each id in sql query on condition
try SELECT IDENT_CURRENT(‘YourTable’) See more here
-
1
votes3
answers1334
viewsA: SQL query in PHP and date format
$sqlrelatorio .= " AND Format_DATA(DataPartida,'%Y-%m-%d') >= '$de' AND Format_DATA(DataChegada,'%Y-%m-%d') <= '$ate'"; The search will always return in this YYYY-mm-dd format, using the…
-
7
votes1
answer382
viewsQ: Datagridview VB Celulas Editaveis
Hello, I have a Datagridview that is populated by a Bindingsource and when I load the data I can’t edit the Cells with value, only when I load the empty Datagridview, I tried to use…
vb.netasked Hebert Lima 987 -
2
votes1
answer1296
viewsA: Insert Listview content into database (Mysql)
I resolved... Dim qntItens As Integer Dim qntLops As Integer Dim objlistViwer reconect() qntItens = ListView1.Items.Count If Not ListView1.Items.Count = 0 Then Do Until qntLops =…
vb.netanswered Hebert Lima 987 -
2
votes2
answers1303
viewsA: How to do a ZIP search in VB
Hello, I do so: Here’s the webservice register Byjg is free! After adding the reference, as I use in several Formularies I created in Module a global variable and the function that receives the…
-
2
votes1
answer1296
viewsQ: Insert Listview content into database (Mysql)
Hello, I am developing an application in Vb and would like to know, how to pass a list created in Listviw control to the database? until the moment I built it: Private Sub criarLista()…
vb.netasked Hebert Lima 987 -
0
votes1
answer555
viewsQ: Pass control as parameter
Hello, I’m doing a reduction of some lines of code in Vb.net, one of them is a search function that creates an Autocomplete from a database, the code that does this is as follows: Private Sub…
vb.netasked Hebert Lima 987 -
2
votes2
answers239
viewsQ: Dataset with cloister Where like '%' @parametro Visual Basic 2012
Hello, I am creating a form to generate reports using the Reportviwer control and I came across a problem, I have a Dataset created with Dsclient name, I created a clausa to filter the search…
-
2
votes1
answer1040
viewsQ: Jfreechart - Java Swing charts do not appear on the screen
Hello, I’m developing a Java swing application for a university project. Basically it is a program that reads XML files from another application (mobile game) and generates graphic reports from the…
-
2
votes1
answer1674
viewsQ: image extension check for upload with php
Hello, I created a registration page where the user can insert a profile image, everything works normal, except when I check the file extension( I’m new in php) and use this algorithm:…
phpasked Hebert Lima 987 -
-1
votes2
answers1807
viewsQ: header(" Location:") Redirect from root directory
Hello! I’m a beginner in php, and I’m having trouble using the header(Location function). Whenever I redirect a page, the path is from the directory of the current page! Ex: Home/Forum/Images/ if I…
phpasked Hebert Lima 987 -
3
votes1
answer52
viewsA: Datetimerpicker VBA
Turning over the MSDN I found! Dim h As New TimeSpan h = bs_coleta.Current("coleta_horaColeta") DateTimePicker1.text = h.ToString bs_collection is a Bindingsource that temporarily stores the data…
vb.netanswered Hebert Lima 987 -
1
votes1
answer52
viewsQ: Datetimerpicker VBA
I am developing an application in Visual Basic, and would like to know how to load saved hours in the database for control DateTimePicker, I can normally insert the value into the database.…
vb.netasked Hebert Lima 987