Posts by LipESprY • 4,525 points
187 posts
-
3
votes2
answers186
viewsA: How to place zigzag edge on an image using css?
"- NOTE: The pink border of the image I want it to be transparent." What you want is usually called a mask! An alternative is to use an SVG. And as much as the alternative of @hugocsl, takes a…
-
7
votes2
answers1140
viewsA: How to make an Insert with columns and values coming from a select?
Yes, it is possible! Enough not inform the clause values replacing it with a query select. See in practice (without applying the clause where): > INSERT INTO `insert_select` VALUES ('12:00:00',…
-
0
votes1
answer18
viewsA: Mysqli_stmt Errors
Initially, the error is here: [...] if(empty($grupo_err) && empty($cliente_err)){ // Prepare an update statement $sql = "UPDATE clientes SET id_grupo=?, cliente=?, WHERE id=?"; if($stmt =…
-
0
votes1
answer40
viewsA: Organize form block in boostrap
You need to add your "grid columns" into a "grid line". Remember?! Here’s how your code looks - note the comment where you start and end the grid line: <form method="post" id="buscarVendas"…
-
2
votes1
answer7744
viewsA: Button placement on bootstrap
Despite the low quality of your question, I think I can assume it’s related to the "Filter" button. It is important that you add such information to your question, such as bringing the code part to…
-
2
votes1
answer3392
viewsA: Deprecated: Methods with the same name as their class will not be constructors in a Future version of PHP
To begin with, you need to interpret the error messages. The first two messages say that the constructor using the class name will be removed in future versions of PHP. The goal is to prepare you…
-
2
votes1
answer240
viewsA: Javascript does not work after update div
Scripts returned via AJAX are not automatically executed when loaded with the property .innerHTML. This way, you need to "force" your execution with the eval(): index php.: <div id="content">…
-
1
votes3
answers98
viewsA: How to check if the record exists in the database and update if it exists
It sounds strange to me before the appointment you already have the id and still check if it exists in the database. But let’s go to the answer! Whereas you already have the id of the record to be…
-
1
votes2
answers669
viewsA: Tables with vertical and horizontal scroll
The main goal of CSS classes is to reuse styling. You ended up going backwards by doubling all styles and changing only the name. In this situation you’d better add an ID and change the Javascript…
-
0
votes2
answers96
viewsA: Print user name on page
I opened the session only on the Minhaconta.php page According to the PHP documentation, the session should be started or resumed whenever accessing the information stored in it: session_start()…
-
0
votes1
answer66
viewsA: Problem with anchor link
I am unable to slide to the title (by clicking) We usually add the id of the target in the href of the link a and the browser takes care to "find the element and scroll to it". In your code, the…
-
1
votes2
answers86
viewsA: Count GET parameters - PHP
You can do a simple function to get the empty values: <?php function count_sem_vazios($array) { $contagem = 0; foreach ($array as $foo) { if (!empty($foo)) $contagem++; } return $contagem; } //…
-
0
votes2
answers78
viewsA: Autoload does not find PSR-0 class
The autoload PSR-0, although it works, is outdated. Use the autoload PSR-4. The installation syntax is a little different: Create the file composer.json with the following content: { "autoload": {…
-
2
votes2
answers730
views -
0
votes1
answer93
viewsA: Leave the selected item marked in the menu
"- [...] i do not know how to change the value of the page variable [...]" That variable shall receive a REQUEST_URI duly parsed. See how it looks: $page = parse_url($_SERVER['REQUEST_URI'],…
javascriptanswered LipESprY 4,525 -
1
votes1
answer31
viewsA: ERROR Array to string Conversion on line 28
Look at that line: 'cate_link' => Rotas::pag_Produtos(). '/' .$lista['cate_id'] . '/' . ['cate_slug'] Failed to declare the array here: ['cate_slug']... See how it looks: 'cate_link' =>…
-
0
votes1
answer475
viewsA: receive json_encode ( (array) $objj) in jquery
As proposed in the comments, I will reformulate your PHP (that was not posted, but let’s say, I developed that part from scratch). <?php class CelulasReunioes { public $idCelula, $data,…
-
0
votes1
answer35
viewsA: class definitions do not apply in css
"- I can’t get the first class css to be applied to the others" This is a bit confusing. If you want an element to be stylized "with both classes", just define the two classes in the element:…
-
1
votes1
answer1211
viewsA: Access files outside the project root folder (Web Development)
When you invoke some file on the server, you can "level up" the directory with ../ without being limited to the site’s root directory. When you invoke some file on the client (browser), you get…
-
1
votes3
answers76
viewsA: Doubt in the layout composition
"- blue and green areas, ratio to each other is 40%/60%. the 2 blue and green areas added, ratio to rest, would be 70% and 30% the top menus" Example with pure HTML and CSS (run in full screen):…
-
1
votes3
answers3139
viewsA: Video unavailable
Notice that in your code, you start like this: <frame ... The correct is <iframe.... Second that the tag iframe needs a delimiter: <iframe ...></iframe>. If you copy ALL OVER the…
-
1
votes2
answers522
viewsA: Doubt preg_match PHP
Following your parameters, I made this code: $strings = array( 'uma string inválida', 'uma string valida', '0uma string invalida', 'uma string invalida !', 'uma-string_valida.', '@…
-
1
votes2
answers434
viewsA: How to check the number of characters in a password field with jquery?
The problem Look at that part: $('#senha').val().lenght The correct name of the method is .length; Now just rewrite your condition: $('#form').on('submit', function(event) { event.preventDefault();…
-
3
votes3
answers1491
viewsA: MYSQL and REGEX Phone Number
"- [...] who have in the middle of the text phone numbers to delete (automatic moderation) [...] It is a forum, people everyday comment and put phone numbers in the middle of the committed" First,…
-
0
votes1
answer82
viewsA: Capture multiple links addresses with Regex in PHP
"- [...] a page with several types of links [...]". As you said it is a page with several links, I assume(imos) that these links are an element a attribute-ridden href and such... As I mentioned in…
-
3
votes1
answer31
viewsA: Login using Prepared Statements from Mysqli returns error
Note this part of your code: if ($statement->execute()) { if (password_verify($_POST['password'], $password)) { $_SESSION['user_id'] = $id; $_SESSION['user_username'] = $username;…
-
1
votes1
answer49
viewsA: select content from another page and show at index
As the mistake itself says: Index p is not defined. You are seeking the value of p which should be received via GET. But did not receive! The correct is to check when searching for the variable…
-
2
votes2
answers85
viewsQ: Modal box centered on the screen, with dynamic and limited width and height
I’m creating a Modal box which will in the future receive data from a request ajax. To this end, I follow the following premises:: It shall be in the centre of the belt (horizontally and…
-
1
votes2
answers787
viewsA: How to select the logUser attribute only on the main JSON object using Regex
"- I need to select the logUser attribute only in the JSON Main Object" Possible but not recommended! @off-topic: There are libraries of JSON for almost all (if not all) major programming languages.…
-
2
votes1
answer100
viewsA: Popular checkbox with jQuery
For starters, look at this: json structure: {"Class A", "Class B"} Your JSON follows a wrong syntax! See: Test your Jsons with Jsonlint! A quick explanation: {} (keys) for objects. Therefore, you…
-
1
votes2
answers32
viewsA: How do I identify which element/pseudo-element I have to pick up to assign some styling (css)?
Do as you see fit! When there is ID for the element and class, I use which of the two ? With the ID: #id_do_elemento { /* estilização */ } With class: .classe_do_elemento { /* estilização */ } When…
-
6
votes2
answers1558
viewsA: Media CSS queries not working and conflicting
Do so: @media (max-width:767px) { /* de 0px até 767px */ } @media (min-width:768px) and (max-width: 992px) { /* de 768px até 992px*/ } @media (min-width:992px) { /* acima de 992px */ /* ... */ }…
-
1
votes1
answer60
viewsA: How to make a UL center horizontally and vertically on a Nav?
See if that’s what you need: *{margin: 0; padding: 0;} nav { width: 100%; height: 100px; background:gy; margin: 0 auto; text-align: center; background: rgba(0,0,0, 0.6); display: flex; align-items:…
-
0
votes1
answer28
viewsA: How to send email with PHP with IF in the middle of the message?
See if that’s what you need: $message .= "<br>"; $message .= "<p style=\"text-align: center;\"><br /><strong>TERMO DE TRANSFERENCIA DE RESPOSNSABILIDADE DE BENS…
-
1
votes1
answer450
viewsA: How to call the connection within a function
Following the structure of your project: /pdo/defines.php /pdo/config.php /funcs.php /Pdo/defines.php <?php $conexaoPDO = array( 'drive' => 'mysql', // Se for usar MySQL, não precisa mexer (ah…
-
0
votes2
answers41
viewsA: How do I display the search results in the database?
I included it in the.php page, but when I print $sheet to show the result, Array appears instead of the data. With the function mysqli_fetch_row(), you will have a return in vector/list form…
-
2
votes2
answers152
viewsA: receiving null or void field
To begin with, we need to understand that: null or NULL are null and ready - See documentation: PHP - NULL; "null" or "NULL" or 'NULL' sane strings worthwhile null/NULL - View documentation: PHP -…
-
0
votes4
answers16118
viewsA: What is the difference between Static and self in PHP?
Given the excellent answers, I want to emphasize the question of inheritance. But first, let’s recap the following: self: It is used to return the value of a property or call (run) some static…
-
1
votes1
answer1284
viewsA: I can versioning a Word Document in Git
I’ll make an example for you to understand: 1) Create any folder for versioning; 2) Inside this folder, start the Git: git init Initialized Empty Git Repository in [caminho da pasta]/.git/ 3) Create…
-
1
votes2
answers429
viewsA: Problem with flexbox
See if that’s what you need: * { margin: 0; padding: 0; } html { font-size: 62.5%; } body { font-family: 'Dosis', sans-serif; background-color: #363636; } .head { font-family: 'Staatliches',…
-
0
votes1
answer73
viewsA: Modal that appears once
See if that’s what you need: <!DOCTYPE html> <html lang="en" onmouseleave="abreModal()"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,…
-
2
votes1
answer381
viewsA: How to close modal by clicking on X?
See if that’s what you need: <!DOCTYPE html> <html lang="en" onmouseleave="abreModal()"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,…
-
2
votes1
answer90
viewsA: PHP - Bring result with select decimals in the Firebird database
Use the function number_format() of PHP. See how it looks in your case: $foo = (float) 700; $bar = (float) 700.00; echo '$foo formatada com casas decimais: '.number_format($foo, 2, ',', ''); //…
-
0
votes1
answer32
viewsA: Internal Anchor without creating history
With Javascript, you can create a function to open your links using location.replace(). The replace() method Replaces the Current Document with a new one. The Difference between this method and…
-
2
votes1
answer379
viewsA: MVC - Intermediate php file in the View and Controller interface
"- Is there any variation of the MCV that uses this architecture that I’m using or can we say that it’s still the MCV? Do you use any similar structure?" I’ll assume your real problem is about…
-
2
votes2
answers53
viewsA: Capture data by default until last space
See if that’s what you need: <?php $string = 'Advogado: XXX XX Número do Processo: XX XXXX OutroCampo: XXX XX';…
-
9
votes3
answers15114
viewsA: How to change the color of only one word in a paragraph?
How to change the color of just one word in a paragraph? Put a span, which is the tag most recommended for this purpose in the word uva and style as you please: <p id="paragrafo"> Bla bla bla…
-
0
votes1
answer61
viewsA: Check $_SESSION['logout'] value without refreshing the page
"- I would like to know how to check the value of $_SESSION['logout'] every 5 seconds without reloading the page, and when its value is on it redirect." This can be done with requests ajax executed…
-
2
votes1
answer119
viewsA: How to create commands for shots through a CRON task
The title of the question does not suggest the same as the content of the question. In my interpretation you need to "test" your script to see if it’s functional. So let’s go! Yes, the script is…
-
2
votes2
answers111
viewsA: Reposition the side menu to floating when decreasing window
Considering: - "but the missing part is being able to display the menu after clicking on the icon". and: - "could use ajax, jquery, bootstrap". I did the following script with jQuery (same version…