Posts by Barack • 652 points
41 posts
-
0
votes1
answer190
viewsQ: Postgres/Mysql Changing the data of a repeating field
Good morning I have the "areas" table, In it I have the column "f_name" I want to transform the "f_name" column to Unique id. However, there are repeated data currently. I need an Sql command where…
-
0
votes1
answer32
views -
0
votes1
answer77
viewsQ: Datatables - Table Plugin for Jquery - Error searching string
Good morning I’m using Datatables - Table plugin for Jquery, is a code of the old developer where correctly loads the database data however, it has a field "Search:" at the top where type something…
-
-1
votes1
answer43
viewsQ: Problems in a query in mysql - accentuation
Good morning, if I search "Memory" in an input, I made a code to take the accent and is going to query like this: "Memoria" Soon returns to me those who are "Memory" The problem is that my database…
-
2
votes1
answer146
viewsQ: I want to pick up multiple checkbox with item ids for AJAX in select all
I have a checkbox to select everything. Underneath it I have two checkboxes. The select all I haven’t done yet but it’s not the problem, I need only that by clicking the button, send the post with…
-
0
votes1
answer80
viewsQ: I want to query several words independently in mysql
Good morning I have an input that generates a variable $phrase with his dice. $phrase = "%". $phrase."%"; In php Mysql I refer to sql: $comandoSql = select id from items where descricao like ?;…
-
0
votes1
answer58
viewsQ: I want to give enter send a form
Hello, I have a javascript that when clicking the "Search" button, will make a request via ajax and search for a certain value that is in the input. What I need is, when the person type in the input…
-
2
votes0
answers139
viewsQ: Select to group items with related words between the same field
Good morning, I have a database of approximately 40 thousand lines for each product one line. I was using a catalog table (the same as category) where each item (product) that was inserted was…
-
0
votes1
answer1156
viewsA: Take the value of the <tr> the user clicked on a dynamic table
"I need that by clicking on a selected row, I get the value corresponding to the column Name, and can for example put this value in a variable for future treatments." Taking the value of idCoo and…
-
4
votes2
answers2013
viewsQ: Htaccess - redirecting the domain
I had Ubdomain "B2b".dominio.com.br and now I switched the files to "catalogo".dominio.com.br I want an htaccess rule That when you enter the http://b2b.dominio.com.br/etcqlqr-coisa/qualquercoisa No…
-
0
votes1
answer219
viewsQ: Prestashop - Error in form - Status - id_state - Always invalid
I have an error that returns the status as invalid, why not load the states of the country and can not edit that nothing happens. The following is when registering an Address, The State, always…
-
0
votes0
answers114
viewsQ: autoload in the - php classes
It is a scheme that I am inventing since in this project I do not go by framework for being very simple, Working with MVC in the Framework (Codeigniter), But I don’t have a separate Model class with…
-
1
votes0
answers20
viewsQ: What is the difference between display_errors and error_reporting?
What’s the difference between display_errors and error_reporting ? ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); In fact I usually program with the…
-
1
votes2
answers687
viewsQ: Atom text-editor, How to show line errors
Netbeans, for example, indicates line error by not containing a "dot and virtula", showing the reason by hovering the mouse over the line number. But Adam doesn’t do it, I know there’s a way, but I…
-
1
votes2
answers529
viewsQ: Atom text-editor - When clicking the function go to code
Netbeans has the native function already, I want, in Atom, by clicking on the second Ctrl function plus click, go to the function be another file or in the same. I know there’s a way but I can’t do…
-
-1
votes8
answers13920
viewsA: Is <br> or <br/> or <br />right?
For xhtml the right is <br/>, and for html the right is <br>. It depends on the doctype you use.
-
0
votes8
answers6579
viewsA: Check user browser in PHP
I used the following code: /* VERIFICAR NAVEGADOR */ function Navegador() { $MSIE = strpos($_SERVER['HTTP_USER_AGENT'],"MSIE"); $Firefox = strpos($_SERVER['HTTP_USER_AGENT'],"Firefox"); $Mozilla =…
-
0
votes2
answers360
views -
4
votes2
answers646
viewsA: Automatic PHP function
Tasks cron / Cron job, How it works: create a php file that runs the function you need, and when you open it at http it will run what Voce programmed, now just need something automatic to keep…
-
0
votes2
answers180
viewsA: Click on a little sign of + and appear more inputs
<div style="display:none;padding:15px;border:1px solid #CCC;" id="3inp"> <input name="a" type="text" value="input 1"/> <input name="b" type="text" value="input 2"/> <input…
-
0
votes1
answer157
viewsQ: Date position for Google Gantt chart
Google Graphic Timeline I’m using Gantt’s chart, from the Google documentation, follow my graphic image below: I want the chart dates to be at the top of the chart, not at the bottom. I found…
-
2
votes4
answers1125
viewsA: Run PHP function to insert data into DB daily at specific times
Cron tasks, or Cron job, have on hosting usually, only ask for information on support, when to learn, install on your pc/note, windows is the common tasks, and linux is cron if I’m not mistaken the…
-
0
votes0
answers70
viewsQ: Problem collation on Localhost
To a 1 behind I made a bank with colação latin1_swedish_ci and charset latin1, html has become charset UTF-8 in the index that globes all pages inside html, And php became UTF-8 with the codes per…
-
-3
votes1
answer99
viewsQ: Directory / Alias with domain
Hello, I have a domain http://www.~domain.com.br/new I want to make sure that when I walk into http://www.~domain.com.br redirect to/new and do not appear in the url that is new, there is something…
-
0
votes4
answers79
viewsA: Dar Selected at a given value received in the JS function
Missing update select for firefox to work $('#etapa_id').selectmenu({ });
-
3
votes1
answer153
viewsQ: Javascript problem when receiving variable with date
<td class="A8" style="text-align:center;"> <?php $dta_inicial = $dados['data_inicial']; var_dump($dta_inicial); ?> <div class="B2" onclick="preencheform_edicaoJS(<?php echo…
-
1
votes4
answers79
viewsQ: Dar Selected at a given value received in the JS function
> function > editar_etapa_projeto(etapa_projeto_id,etapa_id,dias_total,data_inicial){ > $('#etapa_projeto_id').val(etapa_projeto_id); >…
-
3
votes2
answers239
viewsQ: Variable control with Javascript for html
I have an HTML code with Javascript that when clicking above; If x == 1, performs task A and variable javascript arrow x = 0, otherwise, performs task B and variable javascript arrow x = 1, but the…
-
2
votes1
answer98
viewsQ: Function for checking/checking Image Upload
My code: //return > 0 is ok! function _fileinput($name) { var_dump($name); $input['arquivo'] = $_FILES["$name"]["name"]; $input['arquivo'] = strtolower(str_replace("h","",$input['arquivo']));…
-
-2
votes2
answers70
viewsQ: Syntax error when using UNION
Error: /* Erro SQL (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM pedido a, tipofornecimento b '…
-
0
votes1
answer148
viewsQ: Onselect / Javascript event
I’m trying to make that when the user selects the select source id, and is the selection "Client" the div id "cli" to receive display:block. For that I made a test, of when to trigger the event…
-
2
votes2
answers4189
viewsQ: Required for Checkbox / HTML5
I have several input fields from checkbox referring to the interests of the customer to mark (Interest 1, 2, 3, ...), and another with option of All. I want him to be forced to mark one of these…
-
2
votes1
answer73
viewsA: Drupal, Metadata - Indexing a site in google
People, began to appear the site in the google indexed after I register my site in the own google webmaster tool, thanks to all, now I will improve with the SEO tips that passed me.…
-
2
votes1
answer73
viewsQ: Drupal, Metadata - Indexing a site in google
My site was made in Drupal and I’m having problem to index in google, I already went in the metadata configuration and I took all zeroes exchanging for 1, and including this for 3 letters the word…
-
9
votes8
answers6579
viewsQ: Check user browser in PHP
How do I check if the user is using the Internet Explorer browser, version 10 down, so I can display a message for him to update that before entering my site?
-
1
votes1
answer144
views -
0
votes1
answer502
viewsQ: Error in Function connection class code
I’m in trouble, look at the code I made: <?php class banco { public function __construct() { $banco_hostremoto = "127.0.0.1"; $banco_hostname = "localhost"; $banco_usuario="root";…
-
2
votes1
answer9410
viewsQ: Active link with CSS :active
Guys, I usually make a php code inside my class="" to show in bold for example a specific menu that is active. <div class="menu-up"> <ul> <a href="index.php?url=menu"><li…
-
2
votes1
answer11259
viewsQ: Python with Windows Form or graphical interface
Hello, I’m a beginner in Python 2.7 and I’m wondering how to apply GUI in applications developed with Python, just like html does the interface for php and visual studio is used to make windows form…
-
0
votes2
answers231
viewsQ: How do I read an XML file in PHP?
I have a receipt file on .xml that when uploading to my PHP page, I would like a code that shows up a certain data that contains in the XML file such as the invoice number, the date of issue and the…
-
-4
votes2
answers2364
views