Posts by Cesar Augusto • 300 points
19 posts
-
0
votes3
answers406
viewsA: Screen forwarding after Load
This is Gabriel, welcome to Stackoverflow. There are two ways you can achieve what you need - one easy and one that requires more code to be developed. The easiest way just use the function…
-
-1
votes1
answer168
viewsA: How to change the /wp-admin directory - without the WPS Hide plugin
Bianca, welcome to Stackoverflow! First of all, renaming or moving the directory "wp-admin" is not advisable as it will break your entire Wordpress application, since this directory is set in the…
-
1
votes1
answer178
viewsQ: Highcharts - Line Chart with date
Hello, I can’t create a Chart line using the plugin Highcharts, where the X-axis is separated by months (Jan, Feb, etc...) and the Y-axis is the number of new customers based on those months. Below…
-
1
votes1
answer441
viewsQ: Chart based on weekly data
Fellow programmers, good evening. I’m having a hard time as build a chart of weekly records using PHP, Mysql and the Highcharts library. I have records of connections and disconnections, which is…
-
1
votes2
answers73
viewsA: Logic optimization
$nivel = ; // Nível $alerta = false; // Não foi enviado nenhum alerta $msg = ""; if ($nivel == 5) { // Nível máximo é 5 $msg = (!$alerta) ? "alerta - nível em seu estado…
-
3
votes3
answers2196
viewsA: Check that the values of an array are all the same PHP?
Your code is correct. I left it more "explicit", take a look: $check_array = ('a', 'a', 'a'); $result_array = array_unique($check_array); if (count($result_array) == 1) echo "Valores iguais...";…
-
0
votes1
answer35
viewsQ: Problems when creating an event
I am trying to create an event but get the error below: And my query: CREATE EVENT insert_count ON SCHEDULE EVERY 50 SECOND COMMENT 'bla bla bla bla bla bla.' DO BEGIN INSERT INTO teste (nome,…
mysqlasked Cesar Augusto 300 -
0
votes2
answers613
viewsQ: Form with Ajax and PHP
hello. I have a form inside a modal - which is opened by clicking a button that is generated as a column of a table. By clicking this button I capture the contents of each column and fill a form…
-
1
votes2
answers1168
viewsQ: Query of many Mysql and PHP data
Personal the code below parses the data that is in the openvpn log and stores in the database that by other codes are shown on a table page. But that’s a lot of records in a log file! There are more…
-
1
votes0
answers30
viewsQ: Data search in a log
I’m having trouble seeing where my mistake is, and also understanding and tidy up the delay of query. I have a function in PHP that makes the parser of a log generated by OpenVpn. Below I will leave…
-
3
votes1
answer911
viewsQ: Capture and change the value of a column of your respective row in a table with numerous rows
The future table data will be shown through the code below: <?php while($linhaAssociativa = mysqli_fetch_assoc($query)) { ?> <tr> <td class="cmenu2"><?php echo…
-
3
votes2
answers577
viewsQ: How does Alert show when marking checkbox in a table?
I have a table: The information shown is searched in the bank, and on the column side (in this example) - Salary - you will have a column called Lock / Unlock - where I can block that information in…
-
1
votes1
answer308
viewsQ: Regular Expression, preg_match() and storage in an array
Hello. I have a .txt (Pastebin) which contains the log of the connected clients on a server openvpn and the format of each of the lines is the below: CLIENT_LIST orion-01889596000195…
-
0
votes1
answer111
viewsQ: Data comparison
My setting: I took a code from the Internet that parses the Openvpn log and plays it in the database to play it in a table on an html page. The exit is more or less like this:…
-
0
votes1
answer131
viewsQ: Insert with select from two different places
My code when registering a new user: $sql1 = "INSERT INTO usuario (login, senha_hash, nome, email, direito_deAcesso) VALUES ('{$usuario}', '{$senha_hash}', '{$nome}', '{$email}',…
mysqlasked Cesar Augusto 300 -
1
votes1
answer156
viewsQ: Relationship of Tables - how to do
I’m having trouble figuring out how to relate to tables. My scenario is below: A parceiro may have several usuários, however a usuário may only be attached to one parceiro. A usuário can register…
-
1
votes2
answers2529
viewsQ: Remove record in database without giving refresh
Buenas! I looked for some topics about the same doubt as mine - and I found, but I could not understand how to do... I have the following code snippet: $c = array(); $c = buscaUsuario($conexao);…
-
0
votes2
answers916
viewsQ: Function that returns mysqli_fetch_array
My scenario is this: I have a function called searchUsuario() function buscaUsuario($conexao) { $retornar = array(); $query = mysqli_query($conexao, "SELECT user_name FROM usuarios"); while($result…
-
0
votes1
answer1789
viewsQ: Insert value of a radio button into the database
I have: <label class=""> <input name="user_perfil" type="radio" value="administrador"> Administrador </label> <label class=""> <input name="user_perfil" type="radio"…