Posts by Webster Moitinho • 511 points
56 posts
-
1
votes1
answer93
viewsQ: Insert does not work
I am trying to create a login log of my page, and store this information in the table stat however I am not succeeding and is not returning any error. I put an IF to signal if the inclusion was…
-
0
votes2
answers25
viewsA: Mysql inserts different value in reference column passed in query
The users_id field should be as INTEGER NUMBER with auto increment. This way, it will always use the next number in new records.
sqlanswered Webster Moitinho 511 -
0
votes1
answer61
viewsQ: Autocomplete does not go to the specified page
I am using jQuery to create a search field with "autocomplete" that is working perfectly. However, I am unable to direct to the link, when the user selects. My code is like this: <head>…
-
0
votes1
answer16
viewsQ: Wrong current page tag in Bootstrap4 pagination
I am trying to use bootstrap4 pagination but the active page is coming wrong. For example, the first page comes as page 2. My code looks like this: <nav> <ul class="pagination">…
-
0
votes3
answers210
viewsA: How to use Bootstrap4 Timeline in PHP
Guys got the answer to my problem: After my query I made a fetchAll and then inside a foreach, I included an increment field called $Count and put together with the variables I wanted in the query.…
-
-2
votes3
answers40
viewsA: I am producing a kind of form, but in age people put (age + "years")
I would use an IF: if(($idade > 0) || ($idade < 99)){ echo "aqui vai o campo"; } else { echo "insira uma idade válida"; }
c#answered Webster Moitinho 511 -
0
votes3
answers210
viewsQ: How to use Bootstrap4 Timeline in PHP
I am trying to use Bootstrap4 Timeline but am having problems working with database. The Bootstrap Timeline is displayed alternately, that is, a record is positioned on the left, and the next on the…
-
0
votes1
answer66
viewsQ: Make a session expire
I am trying to put on my page that if the visitor becomes 20 minutes inactive, the session expires, php destroys the session and redirects the visitor to the login page. But it’s not working. My…
-
0
votes2
answers35
viewsQ: Create a grouped query by month
I have a field in my database (dt_nf) that is DATE type. I would like to do a query that groups not by date, but by month and year, but I’m not getting it. My code is like this: SELECT…
-
0
votes1
answer38
viewsQ: SESSION is not loading $_SESSION[']
I am making a user authentication system based on SESSIONS. I created a function that makes the LOGOUT that is like this: session_destroy(); // Cancela/Exclui a sessão iniciada…
-
3
votes1
answer1279
viewsA: Using mysql_num_rows with PDO
It was necessary to call rowCount() of Statement which is the variable use $res_2. In this case it was called $total_registros = $res_2->rowCount() To have the total of records selected.…
-
0
votes1
answer44
viewsQ: Return row count of a query
I’m trying to validate a login using line count of a query, but I’m not getting it: My connection is like this: include("defines.php"); try { $PDO = new PDO('mysql:host=' . HOST . ';dbname=' . DB,…
-
-1
votes1
answer1279
viewsQ: Using mysql_num_rows with PDO
I changed the method of connecting my page to my database via PDO. I used until then a pagination code only that is now returning the error: Warning: mysql_num_rows() expects Parameter 1 to be…
-
2
votes2
answers98
viewsQ: Using PDO links in PHP
I am trying to create a loop with PDO where I can choose the desired field to position it on the page. But the code I’m using is bringing all the fields at once. My code is like this:…
-
0
votes0
answers25
viewsQ: Fatal Error Executing the Query
I’m trying to do a while but I’m not getting it at all. It’s returning the error below: Fatal error: Call to a Member Function query() on null in /home2/techlogu/public_html/index.php on line 697 My…
-
1
votes1
answer182
viewsQ: Connect PHP with MS-Access
I am trying to connect my Access database with PHP, but it is not finding the way. I didn’t want to put the path related to HD because I host my page on a host (it uses Linux) and so I wanted to put…
-
2
votes2
answers45
viewsQ: While is not loading the logs
I am trying to repeat a region however, although mysqli_num_rows indicates that there are 9 records, while nothing is coming. My code is like this: $qry = "SELECT pe_orclinhas.id_orclinha,…
-
-1
votes2
answers376
viewsQ: Query does not return fetch_array
I’m trying to make a query however, although the query works well in Phpmyadmin in the browser returns the message below: Fatal error : Call to Undefined method Pdostatement::fetch_array() in D:…
-
-1
votes1
answer52
viewsQ: How to return balance automatically with AJAX without post
I am trying to make a function that returns the result of an expression. Example: I want to make the distribution of a value informed by the months of a year. Example: 120,000 = Jan/10,000…
-
1
votes1
answer38
viewsQ: Consultation with combined criteria
I’m trying to assign more than one search criteria in the database and I can’t find anything that can help me. I’ll explain it better: I have a database with a "city" field, where I want the daos…
-
0
votes0
answers88
viewsQ: Combo Box loading undesirable values
I’m with two Selects on the page that are interdependent. In the first SELECT I select the Flag and on according to all the stores that belong to that flag. And I have a third field where I wish to…
-
-2
votes2
answers293
viewsQ: "if" does not match the condition
I’m trying to apply a if in my code, but it’s coming wrong: <?php echo $usu_id . "<br />"; echo $centraliz . "<br />"; echo $marca . "<br />"; if($centraliz = "S"){ echo "É…
-
1
votes1
answer386
viewsQ: Keep selected SELECT OPTION after update
I am using a SELECT that automatically updates the page after selection. However it returns with the SELECT at the initial position, when the desired would be that the selected option had already…
phpasked Webster Moitinho 511 -
0
votes0
answers17
viewsQ: Neither variable nor field appear after selected
I have a SELECT that depends on another SELECT to bring the values. However, after selecting the second select, although the url contains the desired value, the field disappears. $bandorc =…
-
7
votes9
answers13997
viewsA: How to create a website without reloading every click on a link?
You can use a switch. Say you’re on the index.php page and want to go to the "A" page. The link should be: <a href="?pag=A">Ir para a Página "A"</a> Now on the index.php page it should…
-
2
votes1
answer408
viewsQ: Creating a SELECT based on another SELECT
I am using a SELECT that automatically updates the page after it is selected. I created another SELECT to work based on the previous SELECT, however, although I see the right amount of registration,…
-
-1
votes1
answer46
viewsQ: Positioning a FORM on the page
I’m trying to put two SELECT MENU next to each other on my page. However, when I put the first it appears, when I put the second and appears in the switched position. If I invert and put the second…
-
0
votes4
answers788
viewsQ: Using HTML5 default value
I am trying to bring a value to an input text disabled but the field is being shown as empty. I already removed the disabled and it keeps coming blank. <input type="text" name="anterior"…
-
0
votes2
answers513
viewsQ: Criteria for consultation with a wildcard character
I am trying to use wildcard character as query criterion in my query, however the result is returned empty. include_once(".. /inc/conexion.php"); $lj = "4"; $linha =…
-
1
votes0
answers27
viewsQ: Could not set variable with fetch_object
I’m trying to make a simple query however, although Phpmyadmin perform the query, when I run the code Apache returns the message: Notice: Undefined variable: rprd in D: xampp htdocs final views…
-
0
votes0
answers52
viewsQ: Subquery in Informix Bank
I have an appointment that seeks sales of a period: SELECT cxpdvend.filial, cxpdvend.dtpedido, cxpdvend.pedvenda, ciendere.nro_endere, cipessoa.nomepessoa, ciendere.celular, cxpdvend.codagente,…
-
0
votes1
answer30
viewsQ: Query does not return setted WHERE
I am trying to perform a query to the Informix Database, and it is bringing the data in normally, but it is ignoring the search criteria. SELECT cnnfcapa.id_nfcapa, cnnfcapa.filial,…
-
0
votes1
answer5140
viewsQ: Display an ALERT and redirect the page
I have a page where the form is with an action that sends the form information to another page. I would like a confirmation (or negation) message to be displayed after the registration has been…
-
0
votes0
answers24
viewsQ: Query does not return value
I have a query in the header of the page that returns the title, the meta name="Description" and the meta name="Keywords" that works very well. However, applying this same query structure in the…
-
1
votes0
answers312
viewsQ: Return radio button value
Although you have set the field default value to "N" in Mysql, when using radio button in the form, if it is not selected, the record comes as null. How to make the entered record, in which the…
-
1
votes2
answers5707
viewsQ: Using single option with radio button
I’m not being able to create a single option for radio button selection. When I click on two options, it selects both, when the ideal would be either one or the other. <div><label…
htmlasked Webster Moitinho 511 -
1
votes0
answers105
viewsQ: Error in SQL Phpmyadmin execution
I am trying to include records by Phpmyadmin, but it is returning a strange error as excerpt below: Error #1054 - Unknown column '€ F’' in 'field list' Query: INSERT INTO `pe_orclinhas`…
-
1
votes3
answers70
viewsQ: Applying Hover to an article
I’m trying to apply a Hover to an article but it’s not working. <style> article.item{ margin: 5px; border: 1px #90ac6e solid; border-radius: 6px; background:#cfe8b1; } article.item:hover{…
cssasked Webster Moitinho 511 -
0
votes1
answer205
viewsQ: Translate theme of Moodle
I have installed the following themes in my Moodle: BCU, Essentials and Klass. But these themes are in English. I accessed some files and translated what was in English, but it didn’t work 100%…
moodleasked Webster Moitinho 511 -
0
votes2
answers190
viewsQ: Problems with accentuation
I have visited several sites and Stackoverflow was the main one, where several solutions were proposed to problems of accentuation in the pages. I realized that I had set up my database wrong…
-
0
votes1
answer72
viewsQ: CSS3 Modal window does not work
I’m trying to create several help links in modal windows, and the tests work well, but when combined with other elements of the page does not appear. Below the example of the tests <style>…
cssasked Webster Moitinho 511 -
0
votes0
answers30
viewsQ: <article> does not appear after CSS
I created a graphic in CSS that works well, but when trying to position it on the page with CSS it goes away. This is the CSS: <?php header("Content-type: text/css"); /*Aqui começa o Gráfico */…
cssasked Webster Moitinho 511 -
0
votes1
answer101
viewsQ: Pseudo-elements in CSS3 does not appear in browser
I’m trying to reproduce the circular progress bar effect, as per this tutorial . I’m not able to create the pseudo-elements properly. My CSS looks like this: .circular-progress{ width: 12rem;…
css3asked Webster Moitinho 511 -
4
votes1
answer151
viewsQ: Linear-gradient does not appear in CSS3
I am trying to apply a linear-gradient to a DIV but it is not appearing in the browser. I have tested in Opera, Chrome, Safari and Firefox but it does not appear at all. My CSS looks like this:…
css3asked Webster Moitinho 511 -
0
votes1
answer43
viewsQ: Strange characters in page view
I am trying to replace my Javascript effects with CSS3. However, in the first positions of the page some strange characters are appearing. I’m also using Fontawesome My CSS looks like this:…
css3asked Webster Moitinho 511 -
0
votes2
answers68
viewsQ: Placing sub-items in the CSS3 menu
I’m creating a drop'n down menu in CSS3, but I’m not managing to style the third level. The CSS is like this: *{margin: 0; padding:0;} .menu{width: 100%; height: 50px; background-color:#222;…
css3asked Webster Moitinho 511 -
-1
votes2
answers3475
viewsQ: Return last characters from a string in PHP
I’m trying to incorporate some financial information from Infomoney into my application, and in the Investment Fund part it gives the ranking of the main portfolios. Only it returns the following…
-
0
votes3
answers275
viewsQ: Using the explode() function on Infomoney
I’m trying to put some economic indicators on the site and got a script that brings the dollar quotation from the Infomoney site. However, I’m looking for other indexes, but the result of the field…
phpasked Webster Moitinho 511 -
0
votes1
answer39
viewsA: Using two options simultaneously Jqueryui Dialog Widgets
I have already solved part of the problem. I have learned how to use two options. Just use the comma as the example below: $( function() { $( "#rank" ).dialog({ width: 500, autoOpen: true, show: {…
-
0
votes1
answer39
viewsQ: Using two options simultaneously Jqueryui Dialog Widgets
I am trying to implement the Jquery-UI Dialog Widget so that the entire screen (and more) is completely populated by Dialogs of different sizes (width) and in different positions (position). But I’m…